OS Manuals

/usr/bin/ocsptool

Command line tools for TLS protocol

From gnutls-utils 3.8.13-r3 (os), captured 2026-11-05 by running ocsptool --help (exit 0). permalink

ocsptool - GnuTLS OCSP tool
Usage:  ocsptool [ -<flag> [<val>] | --<name>[{=| }<val>] ]...

None:

   -d, --debug=num            Enable debugging
				- it must be in the range:
				  0 to 9999
   -V, --verbose              More verbose output
       --infile=file          Input file
				- file must pre-exist
       --outfile=str          Output file
       --ask[=str]            Ask an OCSP/HTTP server on a certificate validity
   -e, --verify-response      Verify response
   -i, --request-info         Print information on a OCSP request
   -j, --response-info        Print information on a OCSP response
   -q, --generate-request     Generates an OCSP request
       --nonce                Use (or not) a nonce to OCSP request
       --load-chain=file      Reads a set of certificates forming a chain from file
				- file must pre-exist
       --load-issuer=file     Reads issuer's certificate from file
				- file must pre-exist
       --load-cert=file       Reads the certificate to check from file
				- file must pre-exist
       --load-trust=file      Read OCSP trust anchors from file
				- prohibits the option 'load-signer'
				- file must pre-exist
       --load-signer=file     Reads the OCSP response signer from file
				- prohibits the option 'load-trust'
				- file must pre-exist
       --inder                Use DER format for input certificates and private keys
       --outder               Use DER format for output of responses (this is the default)
       --outpem               Use PEM format for output of responses
   -Q, --load-request=file    Reads the DER encoded OCSP request from file
				- file must pre-exist
   -S, --load-response=file   Reads the DER encoded OCSP response from file
				- file must pre-exist
       --ignore-errors        Ignore any verification errors
       --verify-allow-broken  Allow broken algorithms, such as MD5 for verification
       --attime=str           Perform validation at the timestamp instead of the system time

Version, usage and configuration options:

   -v, --version[=arg]        output version information and exit
   -h, --help                 display extended usage information and exit
   -!, --more-help            extended usage information passed thru pager

Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.

ocsptool is a program that can parse and print information about
OCSP requests/responses, generate requests and verify responses. Unlike
other GnuTLS applications it outputs DER encoded structures by default
unless the '--outpem' option is specified.

Please send bug reports to:  <bugs@gnutls.org>
Options (26)
OptionDescriptionSource
-d, --debug numEnable debugging.help + man
-V, --verboseMore verbose output.help + man
--infile fileInput file.help + man
--outfile strOutput file.help + man
--ask strAsk an OCSP/HTTP server on a certificate validity.help + man
-e, --verify-responseVerify response.help + man
-i, --request-infoPrint information on a OCSP request.help + man
-j, --response-infoPrint information on a OCSP response.help + man
-q, --generate-requestGenerates an OCSP request.help + man
--nonce, --no-nonceUse (or not) a nonce to OCSP request.help + man
--load-chain fileReads a set of certificates forming a chain from file.help + man
--load-issuer fileReads issuer's certificate from file.help + man
--load-cert fileReads the certificate to check from file.help + man
--load-trust fileRead OCSP trust anchors from file.help + man
--load-signer fileReads the OCSP response signer from file.help + man
--inder, --no-inderUse DER format for input certificates and private keys.help + man
--outderUse DER format for output of responses (this is the default).help + man
--outpemUse PEM format for output of responses.help + man
-Q, --load-request fileReads the DER encoded OCSP request from file.help + man
-S, --load-response fileReads the DER encoded OCSP response from file.help + man
--ignore-errorsIgnore any verification errors.help + man
--verify-allow-brokenAllow broken algorithms, such as MD5 for verification.help + man
--attime strPerform validation at the timestamp instead of the system time.help + man
-v, --version argoutput version information and exithelp + man
-h, --helpdisplay extended usage information and exithelp + man
--more-helpPass the extended usage information through a pager.help + man
Examples (11) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.