Ocsp.MakeRequest Method
Create an Online Certification Status Protocol (OCSP) request as a base64 string.
Syntax
[C#]
public static string MakeRequest(
string issuerCert,
string certFileOrSerialNumber,
HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function MakeRequest ( _
issuerCert As String, _
certFileOrSerialNumber As String, _
hashAlg As HashAlgorithm _
) As String
Parameters
- issuerCert
- name of issuer's X.509 certificate file (or base64 representation)
- certFileOrSerialNumber
- either the name of X.509 certificate file to be checked or its serial number in hexadecimal format preceded by #x
- hashAlg
- Type: HashAlgorithm
Hash algorithm to be used [default = SHA-1]
Return Value
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
VB6/C equivalent: OCSP_MakeRequest
[Contents] [Index]