Uređivanje

Dijeli putem


CertificateRequest Constructors

Definition

Overloads

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(String, ECDsa, HashAlgorithmName)

Initializes a new instance of the CertificateRequest class using the specified subject name, ECDSA 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.

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName, RSASignaturePadding)

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

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)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public:
 CertificateRequest(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ subjectName, System::Security::Cryptography::ECDsa ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public CertificateRequest (System.Security.Cryptography.X509Certificates.X500DistinguishedName subjectName, System.Security.Cryptography.ECDsa key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
new System.Security.Cryptography.X509Certificates.CertificateRequest : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.ECDsa * System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As X500DistinguishedName, key As ECDsa, hashAlgorithm As HashAlgorithmName)

Parameters

subjectName
X500DistinguishedName

The parsed representation of the subject name for the certificate or certificate request.

key
ECDsa

An ECDSA key whose public key material will be included in the certificate or certificate request. If the CreateSelfSigned(DateTimeOffset, DateTimeOffset) method is called, this key is used as a private key.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

Exceptions

subjectName is null.

-or-

key is null.

hashAlgorithm.Name is null or Empty.

Applies to

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public:
 CertificateRequest(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ subjectName, System::Security::Cryptography::X509Certificates::PublicKey ^ publicKey, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public CertificateRequest (System.Security.Cryptography.X509Certificates.X500DistinguishedName subjectName, System.Security.Cryptography.X509Certificates.PublicKey publicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
new System.Security.Cryptography.X509Certificates.CertificateRequest : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.X509Certificates.PublicKey * System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As X500DistinguishedName, publicKey As PublicKey, hashAlgorithm As HashAlgorithmName)

Parameters

subjectName
X500DistinguishedName

The parsed representation of the subject name for the certificate or certificate request.

publicKey
PublicKey

The encoded representation of the public key to include in the certificate or certificate request.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

Exceptions

subjectName is null.

-or-

publicKey is null.

hashAlgorithm.Name is null or Empty.

Applies to

CertificateRequest(String, ECDsa, HashAlgorithmName)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public:
 CertificateRequest(System::String ^ subjectName, System::Security::Cryptography::ECDsa ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public CertificateRequest (string subjectName, System.Security.Cryptography.ECDsa key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
new System.Security.Cryptography.X509Certificates.CertificateRequest : string * System.Security.Cryptography.ECDsa * System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As String, key As ECDsa, hashAlgorithm As HashAlgorithmName)

Parameters

subjectName
String

The string representation of the subject name for the certificate or certificate request.

key
ECDsa

An ECDSA key whose public key material will be included in the certificate or certificate request. If the CreateSelfSigned(DateTimeOffset, DateTimeOffset) method is called, this key is used as a private key.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

Exceptions

subjectName is null.

-or-

key is null.

hashAlgorithm.Name is null or Empty.

See also

Applies to

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public:
 CertificateRequest(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ subjectName, System::Security::Cryptography::RSA ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public CertificateRequest (System.Security.Cryptography.X509Certificates.X500DistinguishedName subjectName, System.Security.Cryptography.RSA key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
new System.Security.Cryptography.X509Certificates.CertificateRequest : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.RSA * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As X500DistinguishedName, key As RSA, hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding)

Parameters

subjectName
X500DistinguishedName

The parsed representation of the subject name for the certificate or certificate request.

key
RSA

A RSA key whose public key material will be included in the certificate or certificate request. If the CreateSelfSigned(DateTimeOffset, DateTimeOffset) method is called, this key is used as a private key.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

padding
RSASignaturePadding

The RSA signature padding to apply if self-signing or being signed with an X509Certificate2.

Exceptions

subjectName is null.

-or-

key is null.

-or-

padding is null.

hashAlgorithm.Name is null or Empty.

Applies to

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName, RSASignaturePadding)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public CertificateRequest (System.Security.Cryptography.X509Certificates.X500DistinguishedName subjectName, System.Security.Cryptography.X509Certificates.PublicKey publicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding? rsaSignaturePadding = default);
new System.Security.Cryptography.X509Certificates.CertificateRequest : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.X509Certificates.PublicKey * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As X500DistinguishedName, publicKey As PublicKey, hashAlgorithm As HashAlgorithmName, Optional rsaSignaturePadding As RSASignaturePadding = Nothing)

Parameters

subjectName
X500DistinguishedName

The parsed representation of the subject name for the certificate or certificate request.

publicKey
PublicKey

The encoded representation of the public key to include in the certificate or certificate request.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

rsaSignaturePadding
RSASignaturePadding

The RSA signature padding to use when signing this request with an RSA certificate.

Applies to

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

Source:
CertificateRequest.cs
Source:
CertificateRequest.cs
Source:
CertificateRequest.cs

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

public:
 CertificateRequest(System::String ^ subjectName, System::Security::Cryptography::RSA ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public CertificateRequest (string subjectName, System.Security.Cryptography.RSA key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
new System.Security.Cryptography.X509Certificates.CertificateRequest : string * System.Security.Cryptography.RSA * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Sub New (subjectName As String, key As RSA, hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding)

Parameters

subjectName
String

The string representation of the subject name for the certificate or certificate request.

key
RSA

A RSA key whose public key material will be included in the certificate or certificate request. If the CreateSelfSigned(DateTimeOffset, DateTimeOffset) method is called, this key is used as a private key.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use when signing the certificate or certificate request.

padding
RSASignaturePadding

The RSA signature padding to apply if self-signing or being signed with an X509Certificate2.

Exceptions

subjectName is null.

-or-

key is null.

-or-

padding is null.

hashAlgorithm.Name is null or Empty.

See also

Applies to