C#操作证书

  1、使用C#操作证书:基本思路通过将证书转化为二进制数组,将数组解析为证书格式。使用

using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
命名空间。使用
X509Certificate2 x509 = new X509Certificate2();类
可以参考MSDN: http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1
posted @ 2013-05-17 18:07  快乐在进行  阅读(657)  评论(0编辑  收藏  举报