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
- 继承
- 属性
名称 | 值 | 说明 |
---|---|---|
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 |