SQL Server connection error with SSL security error

版权声明:複製請註明來源 https://blog.csdn.net/weixin_39392627/article/details/90726330

env: Windows Server 2016

        SQL Server 2016 SP2

新的資料庫主機安裝crystal report, vs2010, silverlight後,遠端使用資料庫帳號密碼連線SQL Server,出現以下訊息:

[DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error.

但是同網段的主機透過服務帳號可以連線

原因可能安裝成是在安裝後升級TLS1.0為TLS1.2並且將TLS1.0停用

 

解決方式:

在registry執行以下指令,增加TLS1.0 CLIENT設定

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]

"Enabled"=dword:00000001

"DisabledByDefault"=dword:00000000

 

執行後可以順利連線。

猜你喜欢

转载自blog.csdn.net/weixin_39392627/article/details/90726330
今日推荐