gpt4 book ai didi

testing - com.microsoft.sqlserver.jdbc.SQLServerException : The driver could not establish a secure connection to SQL Server by using SSL encryption

转载 作者:行者123 更新时间:2023-12-04 03:34:08 24 4
gpt4 key购买 nike

运行数据库连接时,出现以下错误

com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS12]". ClientConnectionId:c85e4cb2-09ee-43f0-b7dc-c6b2e73aee8bUser is able to connect SQL Server successfully!!!

最佳答案

您的服务器使用的是旧的 TLS 1.0 版,而您的数据库驱动程序拒绝使用它。那是因为它太旧了,您应该尝试将服务器配置为使用最新的 TLS 1.2。 SO 有足够的关于如何执行此操作的条目,例如https://dba.stackexchange.com/a/276116

关于testing - com.microsoft.sqlserver.jdbc.SQLServerException : The driver could not establish a secure connection to SQL Server by using SSL encryption,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67261458/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com