CertificateRequest 构造函数

定义

重载

名称 说明
CertificateRequest(X500DistinguishedName, ECDsa, HashAlgorithmName)

使用指定的使用者名称、ECDSA 密钥和哈希算法初始化类的新实例 CertificateRequest

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

使用指定的使用者名称、编码的公钥和哈希算法初始化类的新实例 CertificateRequest

CertificateRequest(String, ECDsa, HashAlgorithmName)

使用指定的使用者名称、ECDSA 密钥和哈希算法初始化类的新实例 CertificateRequest

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

使用指定的使用者名称、RSA 键和哈希算法初始化类的新实例 CertificateRequest

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

使用指定的使用者名称、RSA 键和哈希算法初始化类的新实例 CertificateRequest

CertificateRequest(X500DistinguishedName, ECDsa, HashAlgorithmName)

使用指定的使用者名称、ECDSA 密钥和哈希算法初始化类的新实例 CertificateRequest

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)

参数

subjectName
X500DistinguishedName

证书或证书请求的使用者名称的已分析表示形式。

key
ECDsa

ECDSA 密钥,其公钥材料将包含在证书或证书请求中。 CreateSelfSigned(DateTimeOffset, DateTimeOffset)如果调用该方法,此密钥将用作私钥。

hashAlgorithm
HashAlgorithmName

签名证书或证书请求时要使用的哈希算法。

例外

subjectNamenull

-或-

keynull

hashAlgorithmNamenullEmpty

适用于

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

使用指定的使用者名称、编码的公钥和哈希算法初始化类的新实例 CertificateRequest

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)

参数

subjectName
X500DistinguishedName

证书或证书请求的使用者名称的已分析表示形式。

publicKey
PublicKey

要包含在证书或证书请求中的公钥的编码表示形式。

hashAlgorithm
HashAlgorithmName

签名证书或证书请求时要使用的哈希算法。

例外

subjectNamenull

-或-

publicKeynull

hashAlgorithmNamenullEmpty

适用于

CertificateRequest(String, ECDsa, HashAlgorithmName)

使用指定的使用者名称、ECDSA 密钥和哈希算法初始化类的新实例 CertificateRequest

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)

参数

subjectName
String

证书或证书请求的使用者名称的字符串表示形式。

key
ECDsa

ECDSA 密钥,其公钥材料将包含在证书或证书请求中。 CreateSelfSigned(DateTimeOffset, DateTimeOffset)如果调用该方法,此密钥将用作私钥。

hashAlgorithm
HashAlgorithmName

签名证书或证书请求时要使用的哈希算法。

例外

subjectNamenull

-或-

keynull

hashAlgorithmNamenullEmpty

另请参阅

适用于

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

使用指定的使用者名称、RSA 键和哈希算法初始化类的新实例 CertificateRequest

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)

参数

subjectName
X500DistinguishedName

证书或证书请求的使用者名称的已分析表示形式。

key
RSA

一个 RSA 密钥,其公钥材料将包含在证书或证书请求中。 CreateSelfSigned(DateTimeOffset, DateTimeOffset)如果调用该方法,此密钥将用作私钥。

hashAlgorithm
HashAlgorithmName

签名证书或证书请求时要使用的哈希算法。

padding
RSASignaturePadding

如果自签名或使用 <a0/> 签名,则应用 RSA 签名填充。

例外

subjectNamenull

-或-

keynull

-或-

paddingnull

hashAlgorithmNamenullEmpty

适用于

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

使用指定的使用者名称、RSA 键和哈希算法初始化类的新实例 CertificateRequest

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)

参数

subjectName
String

证书或证书请求的使用者名称的字符串表示形式。

key
RSA

一个 RSA 密钥,其公钥材料将包含在证书或证书请求中。 CreateSelfSigned(DateTimeOffset, DateTimeOffset)如果调用该方法,此密钥将用作私钥。

hashAlgorithm
HashAlgorithmName

签名证书或证书请求时要使用的哈希算法。

padding
RSASignaturePadding

如果自签名或使用 <a0/> 签名,则应用 RSA 签名填充。

例外

subjectNamenull

-或-

keynull

-或-

paddingnull

hashAlgorithmNamenullEmpty

另请参阅

适用于