Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
AuthenticodeAn Authenticode X.509 certificate.
CertA single X.509 certificate.
PfxA PFX-formatted certificate. The Pfx value is identical to the Pkcs12 value.
Pkcs12A PKCS #12–formatted certificate. The Pkcs12 value is identical to the Pfx value.
Pkcs7A PKCS #7–formatted certificate.
SerializedCertA single serialized X.509 certificate.
SerializedStoreA serialized store.
UnknownAn 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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.