System.Security.Cryptography.X509Certificates.X509ContentType Enumeration

Specifies the format of an X.509 certificate.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum X509ContentType

Remarks

Content types X509ContentType.Cert, X509ContentType.Pkcs12, and X509ContentType.SerializedCert can be exported as byte arrays. Therefore, all three formats are serialized certificates. X509ContentType.SerializedCert differs from an exported X509ContentType.Cert file in that it is created by using the tp://go.microsoft.com/fwlink/?LinkId=183293, which serializes both the encoded certificate and its encoded properties. If you export the same System.Security.Cryptography.X509Certificates.X509Certificate object in both formats and view the resulting byte arrays, you will see that the two are different.

Members

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.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0