X509ContentType X509ContentType X509ContentType X509ContentType Enum

Definition

Specifies the format of an X.509 certificate.

public enum class X509ContentType
[System.Runtime.InteropServices.ComVisible(true)]
public enum X509ContentType
type X509ContentType = 
Public Enum X509ContentType
Inheritance
X509ContentTypeX509ContentTypeX509ContentTypeX509ContentType
Attributes

Fields

Authenticode Authenticode Authenticode Authenticode 6

An Authenticode X.509 certificate.

Cert Cert Cert Cert 1

A single X.509 certificate.

Pfx Pfx Pfx Pfx 3

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

Pkcs12 Pkcs12 Pkcs12 Pkcs12 3

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

Pkcs7 Pkcs7 Pkcs7 Pkcs7 5

A PKCS #7–formatted certificate.

SerializedCert SerializedCert SerializedCert SerializedCert 2

A single serialized X.509 certificate.

SerializedStore SerializedStore SerializedStore SerializedStore 4

A serialized store.

Unknown Unknown Unknown Unknown 0

An unknown X.509 certificate.

Remarks

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.

Applies to