Specifies the format of an X.509 certificate.
[System.Runtime.InteropServices.ComVisible(true)] public enum X509ContentType
An Authenticode X.509 certificate.
A single X.509 certificate.
A PFX-formatted certificate. The
A PKCS #12–formatted certificate. The
A PKCS #7–formatted certificate.
A single serialized X.509 certificate.
A serialized store.
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.