Επεξεργασία

Κοινή χρήση μέσω


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
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public sealed class CertificateRequest
type CertificateRequest = class
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type CertificateRequest = class
Public NotInheritable Class CertificateRequest
Inheritance
CertificateRequest
Attributes

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, RSASignaturePadding)

Creates a CertificateRequest for the specified subject name, encoded public key, hash algorithm, and RSA signature padding.

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.

OtherRequestAttributes

Gets a collection representing attributes, other than the extension request attribute, to include in a 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(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()

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.

CreateSigningRequestPem()

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this object using the provided signature generator.

CreateSigningRequestPem(X509SignatureGenerator)

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this 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)
LoadSigningRequest(Byte[], HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

LoadSigningRequest(ReadOnlySpan<Byte>, HashAlgorithmName, Int32, CertificateRequestLoadOptions, RSASignaturePadding)

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

LoadSigningRequestPem(ReadOnlySpan<Char>, HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

Loads the first PEM-encoded PKCS#10 signing request from pkcs10Pem as a new CertificateRequest instance.

LoadSigningRequestPem(String, HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

Loads the first PEM-encoded PKCS#10 signing request from pkcs10Pem as a new CertificateRequest instance.

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