1

有没有办法将证书导入到 Windows 中 ApplicationPool 身份的个人存储中?

问题始于 Azure 网站使用导入证书的方式。正如此博客文章中正确解释的那样 - https://azure.microsoft.com/blog/2014/10/27/using-certificates-in-azure-websites-applications/ - 对于 Azure 网站,证书将安装到个人工作进程的 ApplicationPool 身份的证书存储。

然后通过以下方式访问证书:

X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);

我们正在本地和 Azure 上部署相同的代码,因此我们需要一种方法来在我们的 Windows Server 2012R2 上复制这种行为。

4

0 回答 0