OCSPRequestSignRequest(X509Certificate2, Boolean) Method

Digitally signs the OCSP request. The method uses "sha1RSA" signature algorithm by default.

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
)

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.

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