读书人

怎么获取数字证书中的quot;颁发机构密钥标

发布时间: 2012-03-06 20:47:55 作者: rapoo

如何获取数字证书中的"颁发机构密钥标标识符"
如题:如何获取数字证书中的"颁发机构密钥标标识符"

[解决办法]
关注
[解决办法]

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;        }    } 

读书人网 >asp.net

热点推荐