问题描述
当我尝试在 HTTPS 模式下托管 vert.x 应用程序时出现错误。
我使用的是 JDK 版本 java-11-openjdk-headless-11.0.10.0.9。
当我尝试点击任何请求时,我收到如下错误:
javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
当 JDK 版本为 java-11-openjdk-headless-11.0.9.11
时,应用程序运行良好我使用的是 vert.x 4.0.3。
以下是我使用 HTTPServerOption 的方式:
SelfSignedCertificate selfSignedCertificate = SelfSignedCertificate.create();
HttpServerOptions httpServerOptions = new HttpServerOptions()
.setSsl(true)
.setEnabledSecureTransportProtocols(ENABLE_TLS_TCP)
.setKeyCertOptions(selfSignedCertificate.keyCertOptions())
.setTrustOptions(selfSignedCertificate.trustOptions());
任何输入都会非常有帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)