OCSPSingleRequest(X509Certificate2, Boolean) Constructor

Initializes a new instance of OCSPSingleRequest class from a certificate to include in the request and value that indicates whether to include X509ServiceLocatorExtension extension.

Definition

Namespace: SysadminsLV.PKI.OcspClient
Assembly: SysadminsLV.PKI.OcspClient (in SysadminsLV.PKI.OcspClient.dll) Version: 4.0.1
C#
public OCSPSingleRequest(
	X509Certificate2 cert,
	bool serviceLocator
)

Parameters

cert  X509Certificate2
An X509Certificate2 object that represents a certificate to verify.
serviceLocator  Boolean
Specifies whether to include Service Locator extension in request.

Remarks

Service Locator extension is used only when target OCSP responder is configured as a OCSP-Proxy and is capable to forward original request to a authoritative responder. Normally this extension SHOULD NOT be used.

Exceptions

ArgumentNullExceptionThe cert parameter is null.

See Also