.NET Core 连接数据库,报:A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)

在这里插入图片描述

解决办法:

在“数据库连接字符串最后面”增加证书信任的配置 :

;TrustServerCertificate=true
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐