C# 部署连接到RavenDB的ASP NET核心应用程序
我正在尝试将一个.NET核心应用程序部署到Azure,该应用程序连接到RavenDB,本地没有问题,因为它需要在连接初始化时安装和读取证书,问题是当它在云中时,它向我显示此错误:C# 部署连接到RavenDB的ASP NET核心应用程序,c#,asp.net,asp.net-core,ravendb,azure-web-app-service,C#,Asp.net,Asp.net Core,Ravendb,Azure Web App Service,我正在尝试将一个.NET核心应用程序部署到Azure,该应用程序连接到RavenDB,本地没有问题,因为它需要在连接初始化时安装和读取证书,问题是当它在云中时,它向我显示此错误: The SSL connection could not be established, see inner exception. -> The credentials supplied to the package were not recognized (The SSL connection could n
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.
我找不到解决方法,我将证书包括在生产版本中,并从应用程序服务Azure控制面板安装证书。我真的很想知道如何解决这个问题,我在其他地方搜索时没有找到解决方案如何在应用程序中加载客户端证书? 尝试使用机器按键设置标志
[DocumentStore].Certificate=new X509Certificate2(“[client cert path]”,(string)null,X509keystrageFlags.MachineKeySet)代码>您可以共享读取证书的代码吗?