开发者

Open pfx certificate container in .NET

开发者 https://www.devze.com 2023-02-03 22:29 出处:网络
Where c开发者_如何学编程an I find information on opening a PFX store which contains a certificate? I came across this, however I am kind of loast at the PfxOpen Class.

Where c开发者_如何学编程an I find information on opening a PFX store which contains a certificate? I came across this, however I am kind of loast at the PfxOpen Class.

Edit - I have a pfx file exported with a private key. I am storing that in my database. I want to be able to open the pfx file and read information from the certificate contained in that pfx file, example the serial, expiration date etc.


X509Certificate2 cert = new X509Certificate2(filename, password)

from there you can see what's in the cert. the X509Certificate2 has many overloads. check it out.

0

精彩评论

暂无评论...
验证码 换一张
取 消