CertificateRequest Class

Definition

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
Inheritance
CertificateRequest

Remarks

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).

Constructors

CertificateRequest(String, ECDsa, HashAlgorithmName)

Initializes a new instance of the CertificateRequest class using the specified subject name, ECDSA key, and hash algorithm.

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

Initializes a new instance of the CertificateRequest class using the specified subject name, RSA key, and hash algorithm.

CertificateRequest(X500DistinguishedName, ECDsa, HashAlgorithmName)

Initializes a new instance of the CertificateRequest class using the specified subject name, ECDSA key, and hash algorithm.

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

Initializes a new instance of the CertificateRequest class using the specified subject name, encoded public key, and hash algorithm.

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

Initializes a new instance of the CertificateRequest class using the specified subject name, RSA key, and hash algorithm.

Properties

CertificateExtensions

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

Gets the X.500 Distinguished Name to use as the Subject in a created certificate or certificate request.

Methods

Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, Byte[])

Signs 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.

CreateSelfSigned(DateTimeOffset, DateTimeOffset)

Creates a self-signed certificate using the established subject, key, and optional extensions.

CreateSigningRequest()

Creates an ASN.1 DER-encoded PKCS#10 CertificationRequest value representing the state of the current object.

CreateSigningRequest(X509SignatureGenerator)

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.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to