Table of Contents

Class Pkcs10CertificationRequestDelaySigned

Namespace
Org.BouncyCastle.Pkcs
Assembly
BouncyCastle.Cryptography.dll
public class Pkcs10CertificationRequestDelaySigned : Pkcs10CertificationRequest, IAsn1Convertible
Inheritance
Pkcs10CertificationRequestDelaySigned
Implements
Inherited Members

Remarks

A class for creating and verifying Pkcs10 Certification requests (this is an extension on Pkcs10CertificationRequest). The requests are made using delay signing. This is useful for situations where the private key is in another environment and not directly accessible (e.g. HSM) So the first step creates the request, then the signing is done outside this object and the signature is then used to complete the request.

Constructors

Pkcs10CertificationRequestDelaySigned()

protected Pkcs10CertificationRequestDelaySigned()

Pkcs10CertificationRequestDelaySigned(Asn1Sequence)

public Pkcs10CertificationRequestDelaySigned(Asn1Sequence seq)

Parameters

seq Asn1Sequence

Pkcs10CertificationRequestDelaySigned(byte[])

public Pkcs10CertificationRequestDelaySigned(byte[] encoded)

Parameters

encoded byte[]

Pkcs10CertificationRequestDelaySigned(Stream)

public Pkcs10CertificationRequestDelaySigned(Stream input)

Parameters

input Stream

Pkcs10CertificationRequestDelaySigned(string, X509Name, SubjectPublicKeyInfo, Asn1Set)

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.

public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, SubjectPublicKeyInfo pubInfo, Asn1Set attributes)

Parameters

signatureAlgorithm string

Name of Sig Alg.

subject X509Name

X509Name of subject eg OU="My unit." O="My Organisatioin" C="au"

pubInfo SubjectPublicKeyInfo

SubjectPublicKeyInfo to be included in cert request.

attributes Asn1Set

Asn1Set of Attributes.

Remarks

After the object is constructed use the GetDataToSign() and finally the SignRequest methods to finalize the request.

Pkcs10CertificationRequestDelaySigned(string, X509Name, SubjectPublicKeyInfo, Asn1Set, AsymmetricKeyParameter)

public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, SubjectPublicKeyInfo pubInfo, Asn1Set attributes, AsymmetricKeyParameter signingKey)

Parameters

signatureAlgorithm string
subject X509Name
pubInfo SubjectPublicKeyInfo
attributes Asn1Set
signingKey AsymmetricKeyParameter

Pkcs10CertificationRequestDelaySigned(string, X509Name, AsymmetricKeyParameter, Asn1Set)

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.

public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)

Parameters

signatureAlgorithm string

Name of Sig Alg.

subject X509Name

X509Name of subject eg OU="My unit." O="My Organisatioin" C="au"

publicKey AsymmetricKeyParameter

Public key to be included in cert request.

attributes Asn1Set

Asn1Set of Attributes.

Remarks

After the object is constructed use the GetDataToSign() and finally the SignRequest methods to finalize the request.

Pkcs10CertificationRequestDelaySigned(string, X509Name, AsymmetricKeyParameter, Asn1Set, AsymmetricKeyParameter)

public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)

Parameters

signatureAlgorithm string
subject X509Name
publicKey AsymmetricKeyParameter
attributes Asn1Set
signingKey AsymmetricKeyParameter

Methods

GetDataToSign()

public byte[] GetDataToSign()

Returns

byte[]

SignRequest(DerBitString)

public void SignRequest(DerBitString signedData)

Parameters

signedData DerBitString

SignRequest(byte[])

public void SignRequest(byte[] signedData)

Parameters

signedData byte[]