CryptoSys PKI Pro Manual

Ocsp.ReadResponse Method

Read a response to an Online Certification Status Protocol (OCSP) request and outputs the main results in text form.

Syntax

[C#]
public static string ReadResponse(
	string responseFile,
	string issuerCert
)
[VB.NET]
Public Shared Function ReadResponse ( _
	responseFile As String, _
	issuerCert As String _
) As String

Parameters

responseFile
name of the file containing the response data in BER format.
issuerCert
(optional) name of issuer's X.509 certificate file (or base64 representation)

Return Value

A text string outlining the main results in the response data or an empty string on error.

Remarks

Note that a revoked certificate will still result in a "Successful response", so check the CertStatus. The issuer's X.509 certficate issuerCert is optional. If provided, it will be used to check the signature on the OCSP reponse and and an error will result if the signature is not valid. CAUTION: For some CAs (e.g. VeriSign) the key used to sign the OCSP response is not the same as the key in the issuer's certificate, so specifying the issuer's certificate in this case will result in a signature error. If you can separately obtain the certificate used to sign the OCSP response, then specify this as the issuerCert; otherwise leave as the empty string "".

See Also

VB6/C equivalent: OCSP_ReadResponse

[Contents] [Index]

[PREV: Ocsp.MakeRequest Method...]   [Contents]   [Index]   
   [NEXT: Pbe.Kdf2 Method (Int32, Byte, Byte, Int32, HashAlgorithm)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.