com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“RSA premaster secret error”。

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're not using yet, consider using the SQLServerDataSource to set your server configurations. Also, check if the server is accepting TCP/IP connections and if there's no firewall blocking the connections.

Solutions on the web

via csdn.net by Unknown author, 1 year ago
使(SSL) SQL Server :“RSA premaster secret error”。
via Super User by QuakeCore
, 1 year ago
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server did not return a response. The connection has been closed. ClientConnectionId:aae3c3a9-9b39-4141-aeda-577e06a28dfd".
via baidu.com by Unknown author, 1 year ago
使(SSL) SQL Server :“java.lang.RuntimeException: Could not generate DH keypair”。
via hivmr.com by Unknown author, 1 year ago
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: FIPS mode: only SunJSSE TrustManagers may be used. ClientConnectionId:48715f5b-a62e-45fa-aad9-6cc361d88672
via oracle.com by Unknown author, 2 years ago
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "RSA premaster secret error". ClientConnectionId:3f6f7793-611b-4cfc-8122-e6ffde9b0c69
via hivmr.com by Unknown author, 1 year ago
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "RSA premaster secret error". ClientConnectionId:3f6f7793-611b-4cfc-8122-e6ffde9b0c69
com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“RSA premaster secret error”。
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1352)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1533)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1042)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:817)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:700)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)
at java.sql.DriverManager.getConnection(Unknown Source)
at undefined.ConnDB.main(ConnDB.java:14)

Users with the same issue

2 times, 3 months ago
2 times, 6 months ago
28 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
2 times, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.