openssl ocsp

The OpenSSL command that can build OCSP requests, act as a simple OCSP responder, and check the signed answers.

In more detail

As a client it names the issuer and the certificate and writes or sends a request; as a responder it looks the serial number up in a certificate authority's database and signs a reply. When checking a reply it verifies the responder's signature and prints the status, such as good or revoked, with a reason. Working with request and response files makes each step of the protocol visible without a network.

Examples

openssl ocsp -index index.txt -CA ca.pem -rsigner ca.pem -rkey ca.key -reqin request.der -respout response.der
openssl ocsp -respin response.der -issuer ca.pem -cert www.pem -CAfile ca.pem -no_nonce

Related terms

Taught in

References