在致力于认证TLSv1.2时,并基于以下条件:
我们正面临SQL服务器JDBC驱动程序和WebSphere的问题,驱动程序无法与SQL Server建立安全连接,错误消息为:“在SP800_131严格模式下只能启用TLS1.2协议”。< / p>
使用WebSphere应用程序服务器的SQL Server JDBC驱动程序是否支持TLSv1.2。
请考虑同一项目在Tomcat应用程序服务器上与TLSv1.2一起正常工作。
错误的一部分:
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Only TLS1.2 protocol can be enabled in SP800_131 strict mode". ClientConnectionId:960c823d-4db9-4ac2-b2c4-2802a7b432d2
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2400)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1762)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1977)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1628)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1459)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:773)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1168)
at java.sql.DriverManager.getConnection(DriverManager.java:675)
at java.sql.DriverManager.getConnection(DriverManager.java:258)
Caused by: java.lang.IllegalArgumentException: Only TLS1.2 protocol can be enabled in SP800_131 strict mode
at com.ibm.jsse2.Q.a(Q.java:179)
at com.ibm.jsse2.Q.b(Q.java:163)
at com.ibm.jsse2.Q.<init>(Q.java:87)
at com.ibm.jsse2.as.a(as.java:947)
at com.ibm.jsse2.as.<init>(as.java:833)
at com.ibm.jsse2.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:8)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1675)