CryptoSys PKI
23.0.0
|
Online Certificate Status Protocol (OCSP) More...
Public Types | |
enum class | HashAlg |
Hash algorithm. More... | |
Static Public Member Functions | |
static std::string | MakeRequest (const std::string &issuerCert, const std::string &certFileOrSerialNumber, HashAlg hashAlg=HashAlg::Sha1) |
Create an Online Certification Status Protocol (OCSP) request as a base64 string. More... | |
static std::string | ReadResponse (const std::string &responseFile, const std::string &issuerCert="") |
Read a response to an Online Certification Status Protocol (OCSP) request and outputs the main results in text form. More... | |
Online Certificate Status Protocol (OCSP)
|
strong |
|
static |
Create an Online Certification Status Protocol (OCSP) request as a base64 string.
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 | Hash algorithm to be used [default = SHA-1] |
|
static |
Read a response to an Online Certification Status Protocol (OCSP) request and outputs the main results in text form.
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) |
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.issuerCert
; otherwise leave as the empty string ""
.