X509ContentType Enumeration

X509ContentType Enumeration

 

Specifies the format of an X.509 certificate.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)]
public enum X509ContentType

Member nameDescription
Authenticode

An Authenticode X.509 certificate.

Cert

A single X.509 certificate.

Pfx

A PFX-formatted certificate. The Pfx value is identical to the Pkcs12 value.

Pkcs12

A PKCS #12–formatted certificate. The Pkcs12 value is identical to the Pfx value.

Pkcs7

A PKCS #7–formatted certificate.

SerializedCert

A single serialized X.509 certificate.

SerializedStore

A serialized store.

Unknown

An unknown X.509 certificate.

Content types Cert, Pkcs12, and SerializedCert can be exported as byte arrays. Therefore, all three formats are serialized certificates. SerializedCert differs from an exported Cert file in that it is created by using the CertSerializeCertificateStoreElement function, which serializes both the encoded certificate and its encoded properties. If you export the same X509Certificate object in both formats and view the resulting byte arrays, you will see that the two are different.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft