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
)
Public Sub SignRequest (
signerCert As X509Certificate2,
includeFullChain As Boolean,
signatureAlgorithm As Oid
)
public:
void SignRequest(
X509Certificate2^ signerCert,
bool includeFullChain,
Oid^ signatureAlgorithm
)
member SignRequest :
signerCert : X509Certificate2 *
includeFullChain : bool *
signatureAlgorithm : Oid -> unit
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 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