地址:https://docs.microsoft.com/zh-cn/dotnet/api/system.security.cryptography.x509certificates.x509certificate?view=netframework-4.8

标题:X509Certificate 类

 

.NET Framework 4.8版,文档。

提供帮助你使用 X.509 v.3 证书的方法。

继承
X509Certificate
派生
属性
实现
 
using System;
using System.Security.Cryptography.X509Certificates;


public class X509
{

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

    }

}

 

只有此类支持的唯一证书格式。

X509Certificate2 类。

 

相关文章:

  • 2021-10-12
  • 2021-10-05
  • 2021-09-06
  • 2021-05-26
  • 2022-02-08
  • 2021-11-20
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-06-15
  • 2021-06-19
相关资源
相似解决方案