sql-server - Azure SQL 数据库中没有服务器证书信任

标签 sql-server azure security certificate 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 Server 获取的证书,而无需完全验证它。这显然是一件坏事,所以始终使用TrustServerCertificate=false

关于sql-server - Azure SQL 数据库中没有服务器证书信任,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71038577/

相关文章:

使用图形 API 配置 GCP 的 Azure AD saml 配置 "Sign on URL"

azure - 为 azure linux 虚拟机设置防病毒的可能方法有哪些以及如何设置?

azure - 如何通过 Azure 逻辑应用程序使用模板将 CSV 转换为 JSON

security - Docker容器的加密和相互认证?

javascript - 执行以下操作是否 100% 安全?

security - 如何让客户端先进行身份验证?

sql-server - 从 bak 文件恢复原始 MDF 文件

sql-server - 触发器未将数据放入历史表中

SQL Server : selecting rows that contain only certain values?

java - 当数据库中的特定表值发生更改时通知应用程序