X509ContentType 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 X.509 憑證的格式。
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
- 繼承
- 屬性
欄位
| 名稱 | 值 | Description |
|---|---|---|
| Unknown | 0 | 一張未知的X.509證書。 |
| Cert | 1 | 一張 X.509 證書。 |
| SerializedCert | 2 | 一張序號化的 X.509 證書。 |
| Pfx | 3 | 一張PFX格式的證書。
|
| Pkcs12 | 3 | 一份 PKCS #12 格式的憑證。
|
| SerializedStore | 4 | 一間連續的商店。 |
| Pkcs7 | 5 | 一份 PKCS #7 格式的憑證。 |
| Authenticode | 6 | 一份 Authenticode X.509 證書。 |
備註
Cert、Pkcs12 和 SerializedCert 的內容類型可以匯出為位元組陣列。 因此,這三種格式都是序列化的憑證。 SerializedCert 與匯出的憑證檔案不同之處在於,它是透過 CertSerializeCertificateStoreElement 函式建立,該函式同時序列化編碼的憑證及其編碼屬性。 如果你匯出同 X509Certificate 一個物件的兩種格式並查看產生的位元組陣列,你會發現兩者是不同的。