summaryrefslogtreecommitdiffstats
path: root/secure/usr.bin/openssl/man/ocsp.1
diff options
context:
space:
mode:
Diffstat (limited to 'secure/usr.bin/openssl/man/ocsp.1')
-rw-r--r--secure/usr.bin/openssl/man/ocsp.1147
1 files changed, 80 insertions, 67 deletions
diff --git a/secure/usr.bin/openssl/man/ocsp.1 b/secure/usr.bin/openssl/man/ocsp.1
index f1a68ad..66694b5 100644
--- a/secure/usr.bin/openssl/man/ocsp.1
+++ b/secure/usr.bin/openssl/man/ocsp.1
@@ -1,8 +1,7 @@
-.\" Automatically generated by Pod::Man version 1.15
-.\" Wed Feb 19 16:49:33 2003
+.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
.\"
.\" Standard preamble:
-.\" ======================================================================
+.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
@@ -15,12 +14,6 @@
.if t .sp .5v
.if n .sp
..
-.de Ip \" List item
-.br
-.ie \\n(.$>=3 .ne \\$3
-.el .ne 3
-.IP "\\$1" \\$2
-..
.de Vb \" Begin verbatim text
.ft CW
.nf
@@ -28,15 +21,14 @@
..
.de Ve \" End verbatim text
.ft R
-
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. | will give a
-.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used
-.\" to do unbreakable dashes and therefore won't be available. \*(C` and
-.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
+.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
+.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
+.\" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W-|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
@@ -56,10 +48,10 @@
. ds R" ''
'br\}
.\"
-.\" If the F register is turned on, we'll generate index entries on stderr
-.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
-.\" index entries marked with X<> in POD. Of course, you'll have to process
-.\" the output yourself in some meaningful fashion.
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
.if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
@@ -68,14 +60,13 @@
. rr F
.\}
.\"
-.\" For nroff, turn off justification. Always turn off hyphenation; it
-.\" makes way too many mistakes in technical documents.
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
.hy 0
.if n .na
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
-.bd B 3
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
@@ -135,11 +126,10 @@
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
-.\" ======================================================================
+.\" ========================================================================
.\"
.IX Title "OCSP 1"
-.TH OCSP 1 "0.9.7a" "2003-02-19" "OpenSSL"
-.UC
+.TH OCSP 1 "2005-02-25" "0.9.7d" "OpenSSL"
.SH "NAME"
ocsp \- Online Certificate Status Protocol utility
.SH "SYNOPSIS"
@@ -149,6 +139,10 @@ ocsp \- Online Certificate Status Protocol utility
[\fB\-issuer file\fR]
[\fB\-cert file\fR]
[\fB\-serial n\fR]
+[\fB\-signer file\fR]
+[\fB\-signkey file\fR]
+[\fB\-sign_other file\fR]
+[\fB\-no_certs\fR]
[\fB\-req_text\fR]
[\fB\-resp_text\fR]
[\fB\-text\fR]
@@ -158,26 +152,35 @@ ocsp \- Online Certificate Status Protocol utility
[\fB\-respin file\fR]
[\fB\-nonce\fR]
[\fB\-no_nonce\fR]
-[\fB\-url responder_url\fR]
+[\fB\-url \s-1URL\s0\fR]
[\fB\-host host:n\fR]
[\fB\-path\fR]
-[\fB\-CApath file\fR]
+[\fB\-CApath dir\fR]
[\fB\-CAfile file\fR]
[\fB\-VAfile file\fR]
-[\fB\-verify_certs file\fR]
+[\fB\-validity_period n\fR]
+[\fB\-status_age n\fR]
[\fB\-noverify\fR]
+[\fB\-verify_other file\fR]
[\fB\-trust_other\fR]
[\fB\-no_intern\fR]
-[\fB\-no_sig_verify\fR]
+[\fB\-no_signature_verify\fR]
[\fB\-no_cert_verify\fR]
[\fB\-no_chain\fR]
[\fB\-no_cert_checks\fR]
-[\fB\-validity_period nsec\fR]
-[\fB\-status_age nsec\fR]
+[\fB\-port num\fR]
+[\fB\-index file\fR]
+[\fB\-CA file\fR]
+[\fB\-rsigner file\fR]
+[\fB\-rkey file\fR]
+[\fB\-rother file\fR]
+[\fB\-resp_no_certs\fR]
+[\fB\-nmin n\fR]
+[\fB\-ndays n\fR]
+[\fB\-resp_key_id\fR]
+[\fB\-nrequest n\fR]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
-\&\fB\s-1WARNING:\s0 this documentation is preliminary and subject to change.\fR
-.PP
The Online Certificate Status Protocol (\s-1OCSP\s0) enables applications to
determine the (revocation) state of an identified certificate (\s-1RFC\s0 2560).
.PP
@@ -186,108 +189,111 @@ to print out requests and responses, create requests and send queries
to an \s-1OCSP\s0 responder and behave like a mini \s-1OCSP\s0 server itself.
.SH "OCSP CLIENT OPTIONS"
.IX Header "OCSP CLIENT OPTIONS"
-.Ip "\fB\-out filename\fR" 4
+.IP "\fB\-out filename\fR" 4
.IX Item "-out filename"
specify output filename, default is standard output.
-.Ip "\fB\-issuer filename\fR" 4
+.IP "\fB\-issuer filename\fR" 4
.IX Item "-issuer filename"
This specifies the current issuer certificate. This option can be used
multiple times. The certificate specified in \fBfilename\fR must be in
\&\s-1PEM\s0 format.
-.Ip "\fB\-cert filename\fR" 4
+.IP "\fB\-cert filename\fR" 4
.IX Item "-cert filename"
Add the certificate \fBfilename\fR to the request. The issuer certificate
is taken from the previous \fBissuer\fR option, or an error occurs if no
issuer certificate is specified.
-.Ip "\fB\-serial num\fR" 4
+.IP "\fB\-serial num\fR" 4
.IX Item "-serial num"
Same as the \fBcert\fR option except the certificate with serial number
\&\fBnum\fR is added to the request. The serial number is interpreted as a
decimal integer unless preceded by \fB0x\fR. Negative integers can also
-be specified by preceding the value by a \fB-\fR sign.
-.Ip "\fB\-signer filename\fR, \fB\-signkey filename\fR" 4
+be specified by preceding the value by a \fB\-\fR sign.
+.IP "\fB\-signer filename\fR, \fB\-signkey filename\fR" 4
.IX Item "-signer filename, -signkey filename"
Sign the \s-1OCSP\s0 request using the certificate specified in the \fBsigner\fR
option and the private key specified by the \fBsignkey\fR option. If
the \fBsignkey\fR option is not present then the private key is read
from the same file as the certificate. If neither option is specified then
the \s-1OCSP\s0 request is not signed.
-.Ip "\fB\-nonce\fR, \fB\-no_nonce\fR" 4
+.IP "\fB\-sign_other filename\fR" 4
+.IX Item "-sign_other filename"
+Additional certificates to include in the signed request.
+.IP "\fB\-nonce\fR, \fB\-no_nonce\fR" 4
.IX Item "-nonce, -no_nonce"
Add an \s-1OCSP\s0 nonce extension to a request or disable \s-1OCSP\s0 nonce addition.
Normally if an \s-1OCSP\s0 request is input using the \fBrespin\fR option no
nonce is added: using the \fBnonce\fR option will force addition of a nonce.
If an \s-1OCSP\s0 request is being created (using \fBcert\fR and \fBserial\fR options)
a nonce is automatically added specifying \fBno_nonce\fR overrides this.
-.Ip "\fB\-req_text\fR, \fB\-resp_text\fR, \fB\-text\fR" 4
+.IP "\fB\-req_text\fR, \fB\-resp_text\fR, \fB\-text\fR" 4
.IX Item "-req_text, -resp_text, -text"
print out the text form of the \s-1OCSP\s0 request, response or both respectively.
-.Ip "\fB\-reqout file\fR, \fB\-respout file\fR" 4
+.IP "\fB\-reqout file\fR, \fB\-respout file\fR" 4
.IX Item "-reqout file, -respout file"
write out the \s-1DER\s0 encoded certificate request or response to \fBfile\fR.
-.Ip "\fB\-reqin file\fR, \fB\-respin file\fR" 4
+.IP "\fB\-reqin file\fR, \fB\-respin file\fR" 4
.IX Item "-reqin file, -respin file"
read \s-1OCSP\s0 request or response file from \fBfile\fR. These option are ignored
if \s-1OCSP\s0 request or response creation is implied by other options (for example
with \fBserial\fR, \fBcert\fR and \fBhost\fR options).
-.Ip "\fB\-url responder_url\fR" 4
+.IP "\fB\-url responder_url\fR" 4
.IX Item "-url responder_url"
specify the responder \s-1URL\s0. Both \s-1HTTP\s0 and \s-1HTTPS\s0 (\s-1SSL/TLS\s0) URLs can be specified.
-.Ip "\fB\-host hostname:port\fR, \fB\-path pathname\fR" 4
+.IP "\fB\-host hostname:port\fR, \fB\-path pathname\fR" 4
.IX Item "-host hostname:port, -path pathname"
if the \fBhost\fR option is present then the \s-1OCSP\s0 request is sent to the host
\&\fBhostname\fR on port \fBport\fR. \fBpath\fR specifies the \s-1HTTP\s0 path name to use
or \*(L"/\*(R" by default.
-.Ip "\fB\-CAfile file\fR, \fB\-CApath pathname\fR" 4
+.IP "\fB\-CAfile file\fR, \fB\-CApath pathname\fR" 4
.IX Item "-CAfile file, -CApath pathname"
file or pathname containing trusted \s-1CA\s0 certificates. These are used to verify
the signature on the \s-1OCSP\s0 response.
-.Ip "\fB\-verify_certs file\fR" 4
-.IX Item "-verify_certs file"
+.IP "\fB\-verify_other file\fR" 4
+.IX Item "-verify_other file"
file containing additional certificates to search when attempting to locate
the \s-1OCSP\s0 response signing certificate. Some responders omit the actual signer's
certificate from the response: this option can be used to supply the necessary
certificate in such cases.
-.Ip "\fB\-trust_other\fR" 4
+.IP "\fB\-trust_other\fR" 4
.IX Item "-trust_other"
the certificates specified by the \fB\-verify_certs\fR option should be explicitly
trusted and no additional checks will be performed on them. This is useful
when the complete responder certificate chain is not available or trusting a
root \s-1CA\s0 is not appropriate.
-.Ip "\fB\-VAfile file\fR" 4
+.IP "\fB\-VAfile file\fR" 4
.IX Item "-VAfile file"
file containing explicitly trusted responder certificates. Equivalent to the
\&\fB\-verify_certs\fR and \fB\-trust_other\fR options.
-.Ip "\fB\-noverify\fR" 4
+.IP "\fB\-noverify\fR" 4
.IX Item "-noverify"
don't attempt to verify the \s-1OCSP\s0 response signature or the nonce values. This
option will normally only be used for debugging since it disables all verification
of the responders certificate.
-.Ip "\fB\-no_intern\fR" 4
+.IP "\fB\-no_intern\fR" 4
.IX Item "-no_intern"
ignore certificates contained in the \s-1OCSP\s0 response when searching for the
signers certificate. With this option the signers certificate must be specified
with either the \fB\-verify_certs\fR or \fB\-VAfile\fR options.
-.Ip "\fB\-no_sig_verify\fR" 4
-.IX Item "-no_sig_verify"
+.IP "\fB\-no_signature_verify\fR" 4
+.IX Item "-no_signature_verify"
don't check the signature on the \s-1OCSP\s0 response. Since this option tolerates invalid
signatures on \s-1OCSP\s0 responses it will normally only be used for testing purposes.
-.Ip "\fB\-no_cert_verify\fR" 4
+.IP "\fB\-no_cert_verify\fR" 4
.IX Item "-no_cert_verify"
don't verify the \s-1OCSP\s0 response signers certificate at all. Since this option allows
the \s-1OCSP\s0 response to be signed by any certificate it should only be used for
testing purposes.
-.Ip "\fB\-no_chain\fR" 4
+.IP "\fB\-no_chain\fR" 4
.IX Item "-no_chain"
do not use certificates in the response as additional untrusted \s-1CA\s0
certificates.
-.Ip "\fB\-no_cert_checks\fR" 4
+.IP "\fB\-no_cert_checks\fR" 4
.IX Item "-no_cert_checks"
don't perform any additional checks on the \s-1OCSP\s0 response signers certificate.
That is do not make any checks to see if the signers certificate is authorised
to provide the necessary status information: as a result this option should
only be used for testing purposes.
-.Ip "\fB\-validity_period nsec\fR, \fB\-status_age age\fR" 4
+.IP "\fB\-validity_period nsec\fR, \fB\-status_age age\fR" 4
.IX Item "-validity_period nsec, -status_age age"
these options specify the range of times, in seconds, which will be tolerated
in an \s-1OCSP\s0 response. Each certificate status response includes a \fBnotBefore\fR time and
@@ -303,45 +309,45 @@ is checked to see it is not older than \fBage\fR seconds old. By default this ad
check is not performed.
.SH "OCSP SERVER OPTIONS"
.IX Header "OCSP SERVER OPTIONS"
-.Ip "\fB\-index indexfile\fR" 4
+.IP "\fB\-index indexfile\fR" 4
.IX Item "-index indexfile"
\&\fBindexfile\fR is a text index file in \fBca\fR format containing certificate revocation
information.
.Sp
If the \fBindex\fR option is specified the \fBocsp\fR utility is in responder mode, otherwise
-it is in client mode. The \fIrequest\fR\|(s) the responder processes can be either specified on
+it is in client mode. The request(s) the responder processes can be either specified on
the command line (using \fBissuer\fR and \fBserial\fR options), supplied in a file (using the
\&\fBrespin\fR option) or via external \s-1OCSP\s0 clients (if \fBport\fR or \fBurl\fR is specified).
.Sp
If the \fBindex\fR option is present then the \fB\s-1CA\s0\fR and \fBrsigner\fR options must also be
present.
-.Ip "\fB\-CA file\fR" 4
+.IP "\fB\-CA file\fR" 4
.IX Item "-CA file"
\&\s-1CA\s0 certificate corresponding to the revocation information in \fBindexfile\fR.
-.Ip "\fB\-rsigner file\fR" 4
+.IP "\fB\-rsigner file\fR" 4
.IX Item "-rsigner file"
The certificate to sign \s-1OCSP\s0 responses with.
-.Ip "\fB\-rother file\fR" 4
+.IP "\fB\-rother file\fR" 4
.IX Item "-rother file"
Additional certificates to include in the \s-1OCSP\s0 response.
-.Ip "\fB\-resp_no_certs\fR" 4
+.IP "\fB\-resp_no_certs\fR" 4
.IX Item "-resp_no_certs"
Don't include any certificates in the \s-1OCSP\s0 response.
-.Ip "\fB\-resp_key_id\fR" 4
+.IP "\fB\-resp_key_id\fR" 4
.IX Item "-resp_key_id"
Identify the signer certificate using the key \s-1ID\s0, default is to use the subject name.
-.Ip "\fB\-rkey file\fR" 4
+.IP "\fB\-rkey file\fR" 4
.IX Item "-rkey file"
The private key to sign \s-1OCSP\s0 responses with: if not present the file specified in the
\&\fBrsigner\fR option is used.
-.Ip "\fB\-port portnum\fR" 4
+.IP "\fB\-port portnum\fR" 4
.IX Item "-port portnum"
Port to listen for \s-1OCSP\s0 requests on. The port may also be specified using the \fBurl\fR
option.
-.Ip "\fB\-nrequest number\fR" 4
+.IP "\fB\-nrequest number\fR" 4
.IX Item "-nrequest number"
The \s-1OCSP\s0 server will exit after receiving \fBnumber\fR requests, default unlimited.
-.Ip "\fB\-nmin minutes\fR, \fB\-ndays days\fR" 4
+.IP "\fB\-nmin minutes\fR, \fB\-ndays days\fR" 4
.IX Item "-nmin minutes, -ndays days"
Number of minutes or days when fresh revocation information is available: used in the
\&\fBnextUpdate\fR field. If neither option is present then the \fBnextUpdate\fR field is
@@ -386,6 +392,7 @@ multiple CAs and has its own separate certificate chain then its root
.Vb 1
\& openssl x509 -in ocspCA.pem -addtrust OCSPSigning -out trustedCA.pem
.Ve
+.PP
Alternatively the responder certificate itself can be explicitly trusted
with the \fB\-VAfile\fR option.
.SH "NOTES"
@@ -411,6 +418,7 @@ Create an \s-1OCSP\s0 request and write it to a file:
.Vb 1
\& openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem -reqout req.der
.Ve
+.PP
Send a query to an \s-1OCSP\s0 responder with \s-1URL\s0 http://ocsp.myhost.com/ save the
response to a file and print it out in text form
.PP
@@ -418,11 +426,13 @@ response to a file and print it out in text form
\& openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem \e
\& -url http://ocsp.myhost.com/ -resp_text -respout resp.der
.Ve
+.PP
Read in an \s-1OCSP\s0 response and print out text form:
.PP
.Vb 1
\& openssl ocsp -respin resp.der -text
.Ve
+.PP
\&\s-1OCSP\s0 server on port 8888 using a standard \fBca\fR configuration, and a separate
responder certificate. All requests and responses are printed to a file.
.PP
@@ -430,18 +440,21 @@ responder certificate. All requests and responses are printed to a file.
\& openssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem
\& -text -out log.txt
.Ve
+.PP
As above but exit after processing one request:
.PP
.Vb 2
\& openssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem
\& -nrequest 1
.Ve
+.PP
Query status information using internally generated request:
.PP
.Vb 2
\& openssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA demoCA/cacert.pem
\& -issuer demoCA/cacert.pem -serial 1
.Ve
+.PP
Query status information using request read from a file, write response to a
second file.
.PP
OpenPOWER on IntegriCloud