X509Certificate2 Class

 

X509Certificate2.FriendlyName

Gets or sets the associated alias for a certificate.

Friendly names are properties in the X.509 certificate store that can be set. They are used to enable a user to associate aliases with certificates so they can be easily identified.

If no friendly name exists for the certificate, an empty string ("") is returned.

 

X509Certificate2.HasPrivateKey Property

Gets a value that indicates whether an X509Certificate2 object contains a private key.

 

X509Certificate2.PublicKey Property

Remarks

This property returns a PublicKey object, which contains the object identifier (Oid) representing the public key algorithm, the ASN.1-encoded parameters, and the ASN.1-encoded key value.

You can also obtain the key as an AsymmetricAlgorithm object by referencing the PublicKey property. This property supports only RSA or DSA keys, so it returns either an RSACryptoServiceProvider or a DSACryptoServiceProvider object that represents the public key.

 

X509Certificate2.SerialNumber Property

Remarks

The serial number of the certificate is part of the original X.509 protocol. The serial number is a unique number issued by the certificate issuer, which is also called the Certificate Authority (CA).

 

X509Certificate2.SubjectName Property

Remarks

The subject distinguished name is the name of the user of the certificate. The distinguished name for the certificate is a textual representation of the subject or issuer of the certificate. This representation consists of name attributes, for example, "CN=MyName, OU=MyOrgUnit, C=US".

 

X509Certificate2.Thumbprint Property

Remarks

The thumbprint is dynamically generated using the SHA1 algorithm and does not physically exist in the certificate. Since the thumbprint is a unique value for the certificate, it is commonly used to find a particular certificate in a certificate store.

 

X509Certificate2.Extensions Property

Remarks

The extensions defined in the X.509 v3 certificate format allow additional data to be included in the certificate. A number of extensions are defined by ISO in the X.509 v3 definition as well as by PKIX in RFC 3280, "Certificate and Certificate Revocation List (CRL) Profile." Common extensions include information regarding key usage (X509KeyUsageExtension), key identifiers (X509SubjectKeyIdentifierExtension), certificate policies, revocation information (CRL Distribution Point extension), and other uses.

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(273)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2016-12-10 Adding a Controller
2015-12-10 .NET Framework Regular Expressions
2015-12-10 windows registry
2014-12-10 C# Programming Guide-->Statements, Expressions, and Operators-->Anonymous Functions
点击右上角即可分享
微信分享提示