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

HTTPS Response | Confidential transport guarantee #21

Open
sirinath opened this issue Apr 20, 2020 · 1 comment
Open

HTTPS Response | Confidential transport guarantee #21

sirinath opened this issue Apr 20, 2020 · 1 comment

Comments

@sirinath
Copy link

This function may already be there but missing in the docs.

How can DK configure for HTTPS?

@eduard-vasinskyi
Copy link
Contributor

Hello, @sirinath
To launch AsyncHttpServer in HTTPS mode you should configure it by calling one of withSslListenAddress or withSslListenAddresses methods (as opposed to withListenAddress and withListenAddresses for non-HTTPS server). You need to provide an SSLContext, an Executor, and a desired port or address for the server to be listening on.

To add HTTPS support for AsyncHttpClient you need to call withSslEnabled method and pass an SSLContext and an Executor. Now you can make HTTPS requests.

If you have trouble with launching our HTTP services in HTTPS mode, please feel free to ask us here or create a separate issue.
We will make sure to update our documentation with information regarding the launching of HTTP services in HTTPS mode.

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

No branches or pull requests

2 participants