[英]Not able to connect to host database from asp.net core application which is in docker windows container
[英]Deploy an ASP NET Core Application which connect to RavenDB
我正在尝试将一个.NET Core应用程序部署到连接到RavenDB的Azure,本地没有问题,因为它需要在连接初始化时安装和读取证书,问题是当它在云中时,它向我显示了这个错误:
The SSL connection could not be established, see inner exception. -> The credentials supplied to the
package were not recognized (The SSL connection could not be established, see inner exception.
我找不到解决方法,我在生产版本中包含了证书,还从 App Service Azure 控制面板安装了证书。 我真的很想知道如何解决这个问题,我在其他地方搜索时没有找到解决方案
如何在应用程序中加载客户端证书? 尝试使用机器密钥集标志。
[DocumentStore].Certificate = new X509Certificate2("[client cert path]", (string)null, X509KeyStorageFlags.MachineKeySet);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.