Bewerken

Share via


CertificateRequest.CreateSigningRequestPem Method

Definition

Overloads

CreateSigningRequestPem()

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this object using the provided signature generator.

CreateSigningRequestPem(X509SignatureGenerator)

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this object using the provided signature generator.

CreateSigningRequestPem()

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

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this object using the provided signature generator.

public:
 System::String ^ CreateSigningRequestPem();
public string CreateSigningRequestPem ();
member this.CreateSigningRequestPem : unit -> string
Public Function CreateSigningRequestPem () As String

Returns

Exceptions

OtherRequestAttributes contains a null value.

-or-

OtherRequestAttributes contains an entry with a nullOid value.

-or-

OtherRequestAttributes contains an entry representing the PKCS#9 Extension Request Attribute (1.2.840.113549.1.9.14).

-or-

CertificateExtensions contains a null value.

-or-

CertificateExtensions contains an entry with a nullOid value.

-or-

This object was created with a constructor that did not accept a signing key.

A cryptographic error occurs while creating the signing request.

Applies to

CreateSigningRequestPem(X509SignatureGenerator)

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

Creates a PEM-encoded PKCS#10 CertificationRequest representing the current state of this object using the provided signature generator.

public:
 System::String ^ CreateSigningRequestPem(System::Security::Cryptography::X509Certificates::X509SignatureGenerator ^ signatureGenerator);
public string CreateSigningRequestPem (System.Security.Cryptography.X509Certificates.X509SignatureGenerator signatureGenerator);
member this.CreateSigningRequestPem : System.Security.Cryptography.X509Certificates.X509SignatureGenerator -> string
Public Function CreateSigningRequestPem (signatureGenerator As X509SignatureGenerator) As String

Parameters

signatureGenerator
X509SignatureGenerator

A X509SignatureGenerator with which to sign the request.

Returns

Exceptions

signatureGenerator is null.

OtherRequestAttributes contains a null value.

-or-

OtherRequestAttributes contains an entry with a nullOid value.

-or-

OtherRequestAttributes contains an entry representing the PKCS#9 Extension Request Attribute (1.2.840.113549.1.9.14).

-or-

CertificateExtensions contains a null value.

-or-

CertificateExtensions contains an entry with a nullOid value.

-or-

This object was created with a constructor which did not accept a signing key.

A cryptographic error occurs while creating the signing request.

Applies to