共用方式為


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)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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

-或-

keynull

hashAlgorithm.NamenullEmpty

適用於

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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

-或-

publicKeynull

hashAlgorithm.NamenullEmpty

適用於

CertificateRequest(String, ECDsa, HashAlgorithmName)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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

-或-

keynull

hashAlgorithm.NamenullEmpty

另請參閱

適用於

CertificateRequest(X500DistinguishedName, RSA, HashAlgorithmName, RSASignaturePadding)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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

-或-

keynull

-或-

paddingnull

hashAlgorithm.NamenullEmpty

適用於

CertificateRequest(X500DistinguishedName, PublicKey, HashAlgorithmName, RSASignaturePadding)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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)

來源:
CertificateRequest.cs
來源:
CertificateRequest.cs
來源:
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 簽章填補。

例外狀況

subjectNamenull

-或-

keynull

-或-

paddingnull

hashAlgorithm.NamenullEmpty

另請參閱

適用於