OCSPRequestSignRequest(X509Certificate2, Boolean, Oid) Method

Digitally signs the OCSP request.

Definition

Namespace: SysadminsLV.PKI.OcspClient
Assembly: SysadminsLV.PKI.OcspClient (in SysadminsLV.PKI.OcspClient.dll) Version: 4.0.1
C#
public void SignRequest(
	X509Certificate2 signerCert,
	bool includeFullChain,
	Oid signatureAlgorithm
)

Parameters

signerCert  X509Certificate2
An X509Certificate2 object that represents signer certificate.
includeFullChain  Boolean
Specifies whether the full certificate chain is included in the digital signature. If the parameter is False, only signer certificate is included in the signature.
signatureAlgorithm  Oid
Specifies the signature algorithm used to sign the OCSP request.

Remarks

OCSP server may return an error if it do not support signed requests.

Once the request is signed, no modifications to the request object are allowed.

Exceptions

ArgumentException Signer certificate is null.
ArgumentNullException Signer certificate do not contain private key.

See Also