首页 > Windows开发 > 详细

C# 使用 X.509 v.3 证书的方法。

时间:2015-06-24 15:50:28      阅读:572      评论:0      收藏:0      [点我收藏+]

C# 使用 X.509 v.3 证书的方法。

 

public static void Main()
    {

        // The path to the certificate.
        string Certificate = "Certificate.cer";

        // Load the certificate into an X509Certificate object.
        X509Certificate cert = new X509Certificate(Certificate);

        // Get the value.
        string resultsTrue = cert.ToString(true);

        // Display the value to the console.
        Console.WriteLine(resultsTrue);

        // Get the value.
        string resultsFalse = cert.ToString(false);

        // Display the value to the console.
        Console.WriteLine(resultsFalse);

    }

C# 使用 X.509 v.3 证书的方法。

原文:http://www.cnblogs.com/DTWolf/p/4597688.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!