在.NET中打开pfx证书容器
在哪里可以找到有关开设包含证书的 PFX 商店的信息?我遇到了这个,但是我对 PfxOpen 课程有点不感兴趣。
编辑 - 我有一个使用私钥导出的 pfx 文件。我将其存储在我的数据库中。我希望能够打开 pfx 文件并从该 pfx 文件中包含的证书中读取信息,例如序列号、到期日期等。
Where can 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
X509Certificate2 cert = new X509Certificate2(文件名, 密码)
从那里您可以看到证书中的内容。 X509Certificate2 有许多重载。一探究竟。
X509Certificate2 cert = new X509Certificate2(filename, password)
from there you can see what's in the cert. the X509Certificate2 has many overloads. check it out.