boulder/test/ocsp
Aaron Gable afffbb899d
Add -expect-reason flag to checkocsp (#4901)
Adds a new -expect-reason flag to the checkocsp binary to allow for
verifying the revocation reason of the certificate(s) in question.
This flag has a default value of -1, meaning that no particular
revocation reason will be expected or enforced.

Also updates the -expect-status flag to have the same default (-1) and
behavior, so that when the tool is run interactively it can simply
print the revocation status of each certificate.

Finally, refactors the way the ocsp/helper library declares flags and
accesses their values. This unifies the interface and makes it easy to
extend to allow tests to modify parameters other than expectStatus when
desired.

Fixes #4885
2020-06-29 14:15:14 -07:00
..
checkocsp Add -expect-reason flag to checkocsp (#4901) 2020-06-29 14:15:14 -07:00
helper Add -expect-reason flag to checkocsp (#4901) 2020-06-29 14:15:14 -07:00
ocsp_forever Add -expect-reason flag to checkocsp (#4901) 2020-06-29 14:15:14 -07:00
README.md Add checkocsp and ocsp_forever. (#2632) 2017-04-05 12:05:06 -07:00

README.md

This directory contains two utilities for checking ocsp.

"checkocsp" is a command-line tool to check the OCSP response for a certificate or a list of certificates.

"ocsp_forever" is a similar tool that runs as a daemon and continually checks OCSP for a list of certificates, and exports Prometheus stats.

Both of these are useful for monitoring a Boulder instance. "checkocsp" is also useful for debugging.