我在 SQL Server 连接字符串中使用了 Encrypt=yes
,因为我需要将 TCPIP 流量加密,但打开连接时出现错误:
A connection was successfully established with the server, but then an error
occurred during the pre-login handshake. (provider: SSL Provider, error: 0 -
The certificate's CN name does not match the passed value.)
你有没有任何建议可以修复这个问题?我猜我需要在我的服务器之间建立某种证书关系,但是我不知道从哪里开始。
我需要这个解决方案与两个连接一起使用,一个连接到 SQL 2000 服务器,另一个连接到 2005 服务器。