Click or drag to resize

OCSPRequestSignRequest Method (X509Certificate2, Boolean, Oid)

Digitally signs the OCSP request.

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,
	Oid signatureAlgorithm
)

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.
signatureAlgorithm
Type: System.Security.CryptographyOid
Specifies the signature algorithm used to sign the OCSP request.
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