Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable HTTP2 #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

How to enable HTTP2 #4

wants to merge 2 commits into from

Conversation

Joannis
Copy link
Member

@Joannis Joannis commented Sep 15, 2024

No description provided.

@Joannis Joannis requested a review from tib September 15, 2024 12:41

HTTP/2 can only be enabled if your server already supports TLS. In order to support TLS, you'll need to create a ``TLSConfiguration`` from ``NIOSSL``.

You'll need to obtain this certificate through a certificate authority (CA) or generate a self-signed certificate.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a short section on how to generate a self-signed certificate and key? That would be really useful, in my opinion.

FYI: https://theswiftdev.com/a-simple-http2-server-using-vapor-4/#certificate-generation

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tib would you want to write that section? I'd prefer not using RSA in my the recommended certificates of course.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that, what's your recommended algo? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any elliptic curve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants