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(X500DistinguishedName, PublicKey, HashAlgorithmName, RSASignaturePadding)

为指定的使用者名称、编码的公钥、哈希算法和 RSA 签名填充创建 CertificateRequest。

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

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

CertificateRequest(X500DistinguishedName, ECDsa, HashAlgorithmName)

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

使用指定的使用者名称、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

key 上声明的默认值为 null

hashAlgorithm.NamenullEmpty

适用于

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

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

使用指定的使用者名称、编码的公钥和哈希算法初始化 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

publicKey 上声明的默认值为 null

hashAlgorithm.NamenullEmpty

适用于

CertificateRequest(String, ECDsa, HashAlgorithmName)

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

使用指定的使用者名称、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

key 上声明的默认值为 null

hashAlgorithm.NamenullEmpty

另请参阅

适用于

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

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

使用指定的使用者名称、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

自签名或通过 X509Certificate2 签名时要应用的 RSA 签名填充。

例外

subjectNamenull

key 上声明的默认值为 null

padding 上声明的默认值为 null

hashAlgorithm.NamenullEmpty

适用于

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName, RSASignaturePadding)

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

为指定的使用者名称、编码的公钥、哈希算法和 RSA 签名填充创建 CertificateRequest。

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)

参数

subjectName
X500DistinguishedName

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

publicKey
PublicKey

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

hashAlgorithm
HashAlgorithmName

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

rsaSignaturePadding
RSASignaturePadding

使用 RSA 证书对此请求进行签名时要使用的 RSA 签名填充。

适用于

CertificateRequest(String, RSA, HashAlgorithmName, RSASignaturePadding)

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

使用指定的使用者名称、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

自签名或通过 X509Certificate2 签名时要应用的 RSA 签名填充。

例外

subjectName 上声明的默认值为 null

key 上声明的默认值为 null

padding 上声明的默认值为 null

hashAlgorithm.NamenullEmpty

另请参阅

适用于