-
Notifications
You must be signed in to change notification settings - Fork 641
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
[Enhancement] SSLContext Initialize error #451
Comments
:( forget the ssl, update the jks file again, but it is time to add a ssl enable switch. |
As to this question, EventMesh has a ssl enable switch and the default value is false. The user guide of HTTPS can refer to the doc in |
@lrhkobe Yes, I got you. We may need to refactor this code. |
@ruanwenjun I have not got you. Because I see the code which the switch is already in
|
@ruanwenjun Yes, you are right. It might be better to change the code to below: SSLContext sslContext = useTLS ? SSLContextFactory.getSslContext() : null;
b.group(this.bossGroup, this.workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new HttpsServerInitializer(sslContext)).childOption(ChannelOption.SO_KEEPALIVE, Boolean.TRUE); |
Currently, when we initialize the
EventMeshHTTPServer
it will throw an exceptionThis caused by we delete the old
sChat2.jks
file, now if user don't setssl.server.cer
in env, or they don't add asChat2.jks
file toconfPath
, the exception will occur. It is maybe better to add a switch to control whether open SSL.The text was updated successfully, but these errors were encountered: