【发布时间】:2017-11-15 10:37:00
【问题描述】:
我编写了一个程序,它需要证书来进行签名和其他一些事情。
我已将我的 pfx 文件作为私有证书上传到我的应用服务的 SSL 证书中。
然后我尝试在我的应用服务上查看已安装的证书,因为它已被描述为 in here 使用 power shell。
但我当前的用户没有任何证书。
我也无法使用我的 c# 代码找到它:
X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
certStore.Open(OpenFlags.ReadOnly);
X509Certificate2Collection certCollection = certStore.Certificates.Find(X509FindType.FindByThumbprint, ThumbPrint, false);
if (certCollection.Count == 0)
throw new Exception("Certificate not found");
【问题讨论】:
标签: c# azure ssl azure-web-app-service