当前位置: 代码迷 >> ASP.NET >> 怎么获取数字证书中的"颁发机构密钥标标识符"
  详细解决方案

怎么获取数字证书中的"颁发机构密钥标标识符"

热度:6935   发布时间:2013-02-25 00:00:00.0
如何获取数字证书中的"颁发机构密钥标标识符"
如题:如何获取数字证书中的"颁发机构密钥标标识符"

------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
C# code
using System.Security.Cryptography;using System.Security.Cryptography.X509Certificates;   protected void Page_Load(object sender, EventArgs e)    {        X509Store store = new X509Store(StoreLocation.CurrentUser);        store.Open(OpenFlags.ReadOnly);        X509Certificate2Collection certCollection = store.Certificates;        foreach (X509Certificate2 c in certCollection)        {            RSACryptoServiceProvider privatekey = (RSACryptoServiceProvider)c.PrivateKey;        }    }
  相关解决方案