The X509CertificateExtensionMethods type provides extension methods for the
class. X509CertificateExtensionMethods is in the Security.Cryptography.X509Certificates namespace (not the System.Security.Cryptography.X509Certificates namespace), so in order to use these extension
methods, you will need to make sure you include this namespace as well as a reference to Security.Cryptography.dll.
Get all the alternate names encoded under a specific extension OID. The
.GetSubjectAlternateNames() extension methods provide direct access to the subject and issuer names, which can be friendlier to use than this method.
||OID representing the alternate names to retrieve
for the X509 certificate. The caller of this method owns the returned safe handle, and should dispose of it when they no longer need it. This handle can be used independently of the lifetime of
the original X509 certificate.
Get all of the alternate names a certificate has for its issuer
Get all of the alternate names a certificate has for its subject
The HasCngKey method returns true if the X509Certificate is referencing a key stored with with NCrypt in CNG. It will return true if the certificate's key is a reference to a key stored in CNG, and false otherwise. For instance, if the key is stored with
CAPI or if the key is not linked by the certificate and is contained directly in it, this method will return false.