-
Notifications
You must be signed in to change notification settings - Fork 67
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
Support tls tcp server #115
Conversation
Codecov Report
@@ Coverage Diff @@
## main #115 +/- ##
==========================================
- Coverage 48.47% 45.01% -3.46%
==========================================
Files 98 107 +9
Lines 4227 4567 +340
Branches 659 676 +17
==========================================
+ Hits 2049 2056 +7
- Misses 1824 2157 +333
Partials 354 354
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM
InputStream keyStream = new ClassPathResource(KEY_FILE_NAME).getInputStream(); | ||
SslContextBuilder contextBuilder = SslContextBuilder.forServer(certStream, keyStream); | ||
contextBuilder.clientAuth(ClientAuth.OPTIONAL); | ||
contextBuilder.sslProvider(SslProvider.JDK); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JDK's ssl performance is relatively poor, it is recommended to use openssl
link #51 |
ref #51