X509ContentType 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 X.509 憑證的格式。
public enum class X509ContentType
C#
public enum X509ContentType
C#
[System.Runtime.InteropServices.ComVisible(true)]
public enum X509ContentType
type X509ContentType =
[<System.Runtime.InteropServices.ComVisible(true)>]
type X509ContentType =
Public Enum X509ContentType
- 繼承
- 屬性
名稱 | 值 | Description |
---|---|---|
Authenticode | 6 | Authenticode X.509 憑證。 |
Cert | 1 | 單一 X.509 憑證。 |
Pfx | 3 | PFX 格式的憑證。
|
Pkcs12 | 3 | PKCS #12 格式的憑證。
|
Pkcs7 | 5 | PKCS #7 格式的憑證。 |
SerializedCert | 2 | 單一序列化的 X.509 憑證。 |
SerializedStore | 4 | 序列化的存放區。 |
Unknown | 0 | 未知的 X.509 憑證。 |
內容類型 Cert、Pkcs12 和 SerializedCert 可以匯出為位元組陣列。 因此,這三種格式都是串行化憑證。 SerializedCert 與導出的憑證檔案不同,因為它是使用 CertSerializeCertificateStoreElement 函式所建立,它會串行化編碼的憑證及其編碼屬性。 如果您以兩種格式匯出相同的 X509Certificate 物件,並檢視產生的位元組陣列,您會看到這兩個物件不同。
產品 | 版本 |
---|---|
.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 |