Azure SQL 数据库中没有服务器证书信任
No server certificate trust in Azure SQL Database
如果您创建常规 Azure SQL 数据库并转到门户中的“连接字符串”选项卡,所有连接字符串都有 TrustServerCertificate=False
参数。这是为什么? Microsoft 不信任自己的证书?
更新:
我想这只是糟糕的命名。在 the official documentation 中找到:
When TrustServerCertificate
is set to true
, the transport layer will
use SSL to encrypt the channel and bypass walking the certificate
chain to validate trust. If TrustServerCertificate
is set to true
and
encryption is turned on, the encryption level specified on the server
will be used even if Encrypt
is set to false
. The connection will fail
otherwise.
TrustServerCertificate=true
表示客户端将信任它从 SQL 服务器获得的证书,而无需完全验证它。这显然是一件坏事,所以总是使用TrustServerCertificate=false
。
如果您创建常规 Azure SQL 数据库并转到门户中的“连接字符串”选项卡,所有连接字符串都有 TrustServerCertificate=False
参数。这是为什么? Microsoft 不信任自己的证书?
更新: 我想这只是糟糕的命名。在 the official documentation 中找到:
When
TrustServerCertificate
is set totrue
, the transport layer will use SSL to encrypt the channel and bypass walking the certificate chain to validate trust. IfTrustServerCertificate
is set totrue
and encryption is turned on, the encryption level specified on the server will be used even ifEncrypt
is set tofalse
. The connection will fail otherwise.
TrustServerCertificate=true
表示客户端将信任它从 SQL 服务器获得的证书,而无需完全验证它。这显然是一件坏事,所以总是使用TrustServerCertificate=false
。