X509Certificate2.Extensions Property
Represents the collection of X.509 v.3 extensions in a certificate.
Class Information
- Namespace:
- System.Net.Security
- Assembly:
- System.dll
Syntax
[System.Security.Cryptography.Oid(OriginalId="2.5.29.37")]
public class X509Certificate2Extensions
Remarks
The X509Certificate2.Extensions property returns an X509ExtensionCollection object that contains all the extensions associated with the certificate. These extensions provide additional information about the certificate and are defined by various RFC standards. Common extensions include:
- Subject Alternative Name (SAN)
- Key Usage
- Extended Key Usage
- Basic Constraints
- Subject Key Identifier
- Authority Key Identifier
You can iterate through the collection to access individual extensions and retrieve their data. The type of extension is determined by its Object Identifier (OID).
Requirements
- Namespace
- System.Net.Security
- Assembly
- System.dll