CertificateRequest.LoadSigningRequestPem Method

Definition

Overloads

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.

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

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

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

public static System.Security.Cryptography.X509Certificates.CertificateRequest LoadSigningRequestPem (ReadOnlySpan<char> pkcs10Pem, System.Security.Cryptography.HashAlgorithmName signerHashAlgorithm, System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions options = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, System.Security.Cryptography.RSASignaturePadding? signerSignaturePadding = default);
static member LoadSigningRequestPem : ReadOnlySpan<char> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Shared Function LoadSigningRequestPem (pkcs10Pem As ReadOnlySpan(Of Char), signerHashAlgorithm As HashAlgorithmName, Optional options As CertificateRequestLoadOptions = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, Optional signerSignaturePadding As RSASignaturePadding = Nothing) As CertificateRequest

Parameters

pkcs10Pem
ReadOnlySpan<Char>

The PEM-encoded PKCS#10 signing request to load.

signerHashAlgorithm
HashAlgorithmName

The hash algorithm to use when creating a certificate or new signing request.

options
CertificateRequestLoadOptions

A bitwise combination of the enumeration values that specifies how to load the request.

signerSignaturePadding
RSASignaturePadding

The RSA Signature Padding to use when creating a certificate from this request. For RSA signing certificates using the default signature generator, this parameter is required; otherwise, this parameter is ignored.

Returns

A CertificateRequest instance which contains the information from the signing request.

Exceptions

signerHashAlgorithm.Name is null or Empty.

pkcs10 is null.

options specifies a value that is not supported.

pkcs10Pem does not contain a PKCS#10 signing request.

-or-

pkcs10Pem is not a valid PKCS#10 signing request.

-or-

pkcs10Pem contains a signature that could not be verified using its embedded public key.

Applies to

LoadSigningRequestPem(String, HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

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

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

public static System.Security.Cryptography.X509Certificates.CertificateRequest LoadSigningRequestPem (string pkcs10Pem, System.Security.Cryptography.HashAlgorithmName signerHashAlgorithm, System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions options = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, System.Security.Cryptography.RSASignaturePadding? signerSignaturePadding = default);
static member LoadSigningRequestPem : string * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Shared Function LoadSigningRequestPem (pkcs10Pem As String, signerHashAlgorithm As HashAlgorithmName, Optional options As CertificateRequestLoadOptions = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, Optional signerSignaturePadding As RSASignaturePadding = Nothing) As CertificateRequest

Parameters

pkcs10Pem
String

The PEM-encoded PKCS#10 signing request to load.

signerHashAlgorithm
HashAlgorithmName

The hash algorithm to use when creating a certificate or new signing request.

options
CertificateRequestLoadOptions

A bitwise combination of the enumeration values that specifies how to load the request.

signerSignaturePadding
RSASignaturePadding

The RSA Signature Padding to use when creating a certificate from this request. For RSA signing certificates using the default signature generator, this parameter is required; otherwise, this parameter is ignored.

Returns

A CertificateRequest instance which contains the information from the signing request.

Exceptions

signerHashAlgorithm.Name is null or Empty.

pkcs10 is null.

options specifies a value that is not supported.

pkcs10Pem does not contain a PKCS#10 signing request.

-or-

pkcs10Pem is not a valid PKCS#10 signing request.

-or-

pkcs10Pem contains a signature that could not be verified using its embedded public key.

Applies to