Click or drag to resize

OCSPRequestSignRequest Method (X509Certificate2, Boolean)

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

Namespace:  PKI.OCSP
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public void SignRequest(
	X509Certificate2 signerCert,
	bool includeFullChain
)

Parameters

signerCert
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
An X509Certificate2 object that represents signer certificate.
includeFullChain
Type: SystemBoolean
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.
Exceptions
ExceptionCondition
ArgumentException Signer certificate is null.
ArgumentNullException Signer certificate do not contain private key.
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.

See Also