Edit

Share via


CertificateRequest.LoadSigningRequest Method

Definition

Overloads

LoadSigningRequest(Byte[], HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

LoadSigningRequest(ReadOnlySpan<Byte>, HashAlgorithmName, Int32, CertificateRequestLoadOptions, RSASignaturePadding)

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

LoadSigningRequest(Byte[], HashAlgorithmName, CertificateRequestLoadOptions, RSASignaturePadding)

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

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

public static System.Security.Cryptography.X509Certificates.CertificateRequest LoadSigningRequest (byte[] pkcs10, 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 LoadSigningRequest : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Shared Function LoadSigningRequest (pkcs10 As Byte(), signerHashAlgorithm As HashAlgorithmName, Optional options As CertificateRequestLoadOptions = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, Optional signerSignaturePadding As RSASignaturePadding = Nothing) As CertificateRequest

Parameters

pkcs10
Byte[]

The binary 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.

pkcs10 is not a valid PKCS#10 signing request.

-or-

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

Applies to

LoadSigningRequest(ReadOnlySpan<Byte>, HashAlgorithmName, Int32, CertificateRequestLoadOptions, RSASignaturePadding)

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

Loads a binary PKCS#10 signing request as a new CertificateRequest instance.

public static System.Security.Cryptography.X509Certificates.CertificateRequest LoadSigningRequest (ReadOnlySpan<byte> pkcs10, System.Security.Cryptography.HashAlgorithmName signerHashAlgorithm, out int bytesConsumed, System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions options = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, System.Security.Cryptography.RSASignaturePadding? signerSignaturePadding = default);
static member LoadSigningRequest : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * int * System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.CertificateRequest
Public Shared Function LoadSigningRequest (pkcs10 As ReadOnlySpan(Of Byte), signerHashAlgorithm As HashAlgorithmName, ByRef bytesConsumed As Integer, Optional options As CertificateRequestLoadOptions = System.Security.Cryptography.X509Certificates.CertificateRequestLoadOptions.Default, Optional signerSignaturePadding As RSASignaturePadding = Nothing) As CertificateRequest

Parameters

pkcs10
ReadOnlySpan<Byte>

The binary PKCS#10 signing request to load.

signerHashAlgorithm
HashAlgorithmName

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

bytesConsumed
Int32

When this method returns, contains a value that indicates the number of bytes read from source. This parameter is treated as uninitialized.

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.

pkcs10 is not a valid PKCS#10 signing request.

-or-

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

Applies to