X509AuthorityInformationAccessExtension X509AuthorityKeyIdentifierExtension X509BasicConstraintsExtension X509Certificate X509Certificate2 X509Certificate2 构造函数 属性 方法 X509Certificate2Collection X509Certificate2Enumerator X509Certificate2UI X509CertificateCollection ...
以下示例演示如何使用 X509Certificate2 对象来加密和解密文件。C# 复制 using System; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.IO; using System.Text; // To run this sample use the Certificate Creation Tool (Makecert.exe) to generate a tes...
X509Certificate2UI X509CertificateCollection X509CertificateCollection.X509CertificateEnumerator X509Chain X509ChainElement X509ChainElementCollection X509ChainElementEnumerator X509ChainPolicy X509ChainStatus X509ChainStatusFlags X509ChainTrustMode X509ContentType ...
表示X509Certificate2 物件的集合。 無法繼承這個類別。C# 複製 public class X509Certificate2Collection : System.Security.Cryptography.X509Certificates.X509CertificateCollection, System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2>...
X509Certificate2 建構函式 屬性 方法 CopyWithPrivateKey CreateFromEncryptedPem CreateFromEncryptedPemFile CreateFromPem CreateFromPemFile ExportCertificatePem GetCertContentType GetECDiffieHellmanPrivateKey GetECDiffieHellmanPublicKey GetNameInfo 匯入 MatchesHostname ...
RSACertificateExtensions StoreLocation StoreName SubjectAlternativeNameBuilder X500DistinguishedName X500DistinguishedNameBuilder X500DistinguishedNameFlags X500RelativeDistinguishedName X509AuthorityInformationAccessExtension X509AuthorityKeyIdentifierExtension X509BasicConstraintsExtension X509Certificate X509Certificate2 X509Certifi...
X509Certificate2UI X509CertificateCollection X509CertificateCollection.X509CertificateEnumerator X509Chain X509ChainElement X509ChainElementCollection X509ChainElementEnumerator X509ChainPolicy X509ChainStatus X509ChainStatusFlags X509ChainTrustMode X509ContentType ...
X509AuthorityInformationAccessExtension X509AuthorityKeyIdentifierExtension X509BasicConstraintsExtension X509Certificate X509Certificate2 X509Certificate2 构造函数 属性 方法 X509Certificate2Collection X509Certificate2Enumerator X509Certificate2UI X509CertificateCollection ...
http://technet.microsoft.com/zh-cn/system.security.cryptography.x509certificates.x509certificate2(VS.85).aspx 证书数据的来源可以是导出的证书文件,本地证书容器,从域中查询用户数据得到。 1. 从证书文件获得证书对象。 X509Certificate2 cert = new X509Certificate2 (@"c:/myCert.crt" ); ...
要将X.509证书从"X509Certificate“转换为"X509Certificate2",请尝试如下所示: