简体   繁体   English

驱动程序无法使用安全 Sockets 层 (SSL) 加密建立与 SQL 服务器的安全连接。 如何解决这个错误?

[英]The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. How to solve this error?

I was getting this error while running my application and somewhere I read that I it may be jdk incompatibility so I downgraded my jdk to jdk1.8.0_144 and driver was able to connect.我在运行我的应用程序时遇到了这个错误,在某处我读到它可能是 jdk 不兼容,所以我将我的 jdk 降级到jdk1.8.0_144并且驱动程序能够连接。 So now when I create a jar it won't start so I decided to run it with Command Prompt.所以现在当我创建 jar 时它不会启动,所以我决定使用命令提示符运行它。 I was getting that:我明白了:

The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.驱动程序无法使用安全 Sockets 层 (SSL) 加密建立与 SQL 服务器的安全连接。 Error: "Unexpected rethrowing".错误:“意外重新抛出”。

How it can start from my IDE but error occur while start jar?它如何从我的 IDE 开始,但在启动 jar 时出现错误? What can I do to fix this?我能做些什么来解决这个问题?

So the reason why my IDE works and jar doesn't is because jar was running on new JRE version.所以我的 IDE 工作而 jar 不工作的原因是因为 jar 在新的 JRE 版本上运行。 After i run it with older it was working fine.在我用旧版本运行它之后,它工作正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 驱动程序无法使用安全 Sockets 层 (SSL) 加密建立与 SQL 服务器的安全连接。 错误:“意外重新抛出” - The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Unexpected rethrowing" 驱动程序无法使用安全套接字层 (SSL) 加密与 SQL Server 建立安全连接。 错误:“PKIX 路径构建失败: - The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: 如何修复“驱动程序无法使用安全套接字层 (SSL) 加密与 SQL Server 建立安全连接”错误 - How to fix " The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption" error 驱动程序无法使用安全套接字层(SSL)加密与SQL Server建立安全连接 - The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption SQL 服务器 JDBC 错误:驱动程序无法使用安全 Sockets 层 (SSL) 加密与 SQL 服务器建立安全连接 - SQL Server JDBC Error: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption - SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption 驱动程序无法使用 SSL 与 SQL 服务器建立安全连接 - The driver could not establish a secure connection to SQL Server by using SSL 无法使用 MS JDBC 驱动程序从 CentOS 8 服务器连接到 SQL 服务器服务器:使用安全连接 ZEA52C2Z42253C5F99C23Z 错误 - Cannot connect to SQL Server server with MS JDBC Driver from CentOS 8 server: SSL error but not using secure connection 使用 Java 建立到 MySQL Amazon RDS (SSL/TLS) 的安全连接 - Using Java to establish a secure connection to MySQL Amazon RDS (SSL/TLS) 如何以与驱动程序无关的方式与 DB(SQL Server、PG)建立 SSL 连接? - How to establish SSL connection with DB (SQL Server, PG), in a driver agnostic way?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM