Java 8+GlassFish 3.1.2.2环境下TLSv1协议兼容问题求助
升级Java 8后SQL Server TLS连接异常求助
为规避TLS相关问题,我将服务器升级至Java 8,但出现以下TLS握手异常:
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException:Error: "Server chose TLSv1, but that protocol version is not enabled or not supported by the client.".
Caused by: javax.net.ssl.SSLHandshakeException: Server chose TLSv1, but that protocol version is not enabled or not supported by the client.
我已尝试以下方案但问题仍未解决:
- 在
osgi.properties文件中添加jre-1.8=${jre-1.6},com.sun.tracing. - 为服务器JVM Options添加
-Dhttps.protocols=TLSv1.2参数 - 在
domain.xml文件中设置tls11-enabled="false" tls12-enabled="true" tls-enabled="false" - 在数据库连接URL中添加
;encrypt=true;trustServerCertificate=true
恳请各位提供其他可行的解决思路。
内容的提问来源于stack exchange,提问作者Juan C. Moreno
相关产品推荐
相关产品推荐

