X509ContentType Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the format of an X.509 certificate.
public enum class X509ContentType
public enum X509ContentType
[System.Runtime.InteropServices.ComVisible(true)]
public enum X509ContentType
type X509ContentType =
[<System.Runtime.InteropServices.ComVisible(true)>]
type X509ContentType =
Public Enum X509ContentType
- Inheritance
- Attributes
Name | Value | Description |
---|---|---|
Unknown | 0 | An unknown X.509 certificate. |
Cert | 1 | A single X.509 certificate. |
SerializedCert | 2 | A single serialized X.509 certificate. |
Pfx | 3 | A PFX-formatted certificate. The |
Pkcs12 | 3 | A PKCS #12-formatted certificate. The |
SerializedStore | 4 | A serialized store. |
Pkcs7 | 5 | A PKCS #7-formatted certificate. |
Authenticode | 6 | An Authenticode 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.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.3, 1.4, 1.6, 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: