Click or drag to resize

OcspMakeRequest Method

Create an Online Certification Status Protocol (OCSP) request as a base64 string.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string MakeRequest(
	string issuerCert,
	string certFileOrSerialNumber,
	HashAlgorithm hashAlg
)

Parameters

issuerCert  String
name of issuer's X.509 certificate file (or base64 representation)
certFileOrSerialNumber  String
either the name of X.509 certificate file to be checked or its serial number in hexadecimal format preceded by #x
hashAlg  HashAlgorithm
Hash algorithm to be used [default = SHA-1]

Return Value

String
A base64 string suitable for an OCSP request to an Online Certificate Status Manager or an empty string on error.
Remarks
The issuer's X.509 certficate must be specified. The certificate to be checked can either be specified directly as a filename or as a serialNumber in hexadecimal format preceded by "#x", e.g. "#x01deadbeef". If the latter format is used, it must be in hexadecimal format, so the serial number 10 would be passed as "#x0a". It is an error (NO_MATCH_ERROR) if the issuer's name of the certificate to be checked does not match the subject name of the issuer's certificate.
See Also