CertificateRequest 类
定义
表示 PKCS#10 CertificationRequestInfo 和 X.509 TbsCertificate 的抽象。Represents an abstraction over the PKCS#10 CertificationRequestInfo and the X.509 TbsCertificate.
public ref class CertificateRequest sealed
public sealed class CertificateRequest
type CertificateRequest = class
Public NotInheritable Class CertificateRequest
- 继承
-
CertificateRequest
注解
CertificateRequest类允许调用方创建自签名的 x.509 或链签名的 X. Public-Key 证书,并创建证书签名请求 blob 以发送到证书颁发机构 (CA) 。The CertificateRequest class allows callers to create self-signed or chain-signed X.509 Public-Key Certificates, as well as to create a certificate signing request blob to send to a Certificate Authority (CA).
构造函数
| CertificateRequest(String, ECDsa, HashAlgorithmName) |
使用指定的使用者名称、ECDSA 密钥和哈希算法初始化 CertificateRequest 类的新实例。Initializes a new instance of the CertificateRequest class using the specified subject name, ECDSA key, and hash algorithm. |
| CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding) |
使用指定的使用者名称、RSA 密钥和哈希算法初始化 CertificateRequest 类的新实例。Initializes a new instance of the CertificateRequest class using the specified subject name, RSA key, and hash algorithm. |
| CertificateRequest(X500DistinguishedName, ECDsa, HashAlgorithmName) |
使用指定的使用者名称、ECDSA 密钥和哈希算法初始化 CertificateRequest 类的新实例。Initializes a new instance of the CertificateRequest class using the specified subject name, ECDSA key, and hash algorithm. |
| CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName) |
使用指定的使用者名称、编码的公钥和哈希算法初始化 CertificateRequest 类的新实例。Initializes a new instance of the CertificateRequest class using the specified subject name, encoded public key, and hash algorithm. |
| CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding) |
使用指定的使用者名称、RSA 密钥和哈希算法初始化 CertificateRequest 类的新实例。Initializes a new instance of the CertificateRequest class using the specified subject name, RSA key, and hash algorithm. |
属性
| CertificateExtensions |
获取要包含在证书或证书请求中的 X.509 证书扩展集合,这是一个可变集合。Gets the X.509 Certificate Extensions collection, which is a mutable collection, to include in the certificate or certificate request. |
| HashAlgorithm |
获取对证书或证书请求签名时要使用的哈希算法。Gets the hash algorithm to use when signing the certificate or certificate request. |
| PublicKey |
获取证书或证书请求的公钥表示形式。Gets a representation of the public key for the certificate or certificate request. |
| SubjectName |
获取要在已创建证书或证书请求中用作使用者的 X.500 可分辨名称。Gets the X.500 Distinguished Name to use as the Subject in a created certificate or certificate request. |
方法
| Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, Byte[]) |
对当前证书请求签名,以创建链签名证书或自签名证书。Signs the current certificate request to create a chain-signed or self-signed certificate. |
| Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>) |
对当前证书请求签名,以创建链签名证书或自签名证书。Sign the current certificate request to create a chain-signed or self-signed certificate. |
| Create(X509Certificate2, DateTimeOffset, DateTimeOffset, Byte[]) |
通过将指定证书用作颁发者来创建证书,该证书使用建立的使用者、密钥和可选扩展。Creates a certificate using the established subject, key, and optional extensions using the specified certificate as the issuer. |
| Create(X509Certificate2, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>) |
通过将提供的证书用作颁发者来创建证书,该证书使用建立的使用者、密钥和可选扩展。Create a certificate using the established subject, key, and optional extensions using the provided certificate as the issuer. |
| CreateSelfSigned(DateTimeOffset, DateTimeOffset) |
创建自签名证书,此证书使用建立的使用者、密钥和可选扩展。Creates a self-signed certificate using the established subject, key, and optional extensions. |
| CreateSigningRequest() |
创建按 ASN.1 DER 方式编码的 PKCS#10 CertificationRequest 值,用于表示当前对象的状态。Creates an ASN.1 DER-encoded PKCS#10 CertificationRequest value representing the state of the current object. |
| CreateSigningRequest(X509SignatureGenerator) |
使用提供的签名生成器创建按 ASN.1 DER 方式编码的 PKCS#10 CertificationRequest,用于表示当前对象的当前状态。Creates an ASN.1 DER-encoded PKCS#10 CertificationRequest representing the current state of the current object using the provided signature generator. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |