X509ContentType 枚举

定义

指定 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
继承
X509ContentType
属性

字段

Authenticode 6

Authenticode X.509 证书。

Cert 1

单个 X.509 证书。

Pfx 3

PFX 格式的证书。 Pfx 值与 Pkcs12 值相同。

Pkcs12 3

PKCS #12 格式的证书。 Pkcs12 值与 Pfx 值相同。

Pkcs7 5

PKCS #7 格式的证书。

SerializedCert 2

单个序列化 X.509 证书。

SerializedStore 4

序列化存储区。

Unknown 0

未知 X.509 证书。

注解

内容类型 Cert、Pkcs12 和 SerializedCert 可以作为字节数组导出。 因此,这三种格式都是序列化证书。 SerializedCert 与导出的 Cert 文件的不同之处在于,它是通过使用 CertSerializeCertificateStoreElement 函数创建的,该函数同时序列化已编码的证书及其编码属性。 如果以这两种格式导出同一 X509Certificate 对象并查看生成的字节数组,则会看到两者不同。

适用于