]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/usr.bin/openssl/man/ocsp.1
Merge OpenSSL 1.0.2r.
[FreeBSD/FreeBSD.git] / secure / usr.bin / openssl / man / ocsp.1
1 .\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is >0, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .nr rF 0
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{\
60 .    if \nF \{\
61 .        de IX
62 .        tm Index:\\$1\t\\n%\t"\\$2"
63 ..
64 .        if !\nF==2 \{\
65 .            nr % 0
66 .            nr F 2
67 .        \}
68 .    \}
69 .\}
70 .rr rF
71 .\"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
74 .    \" fudge factors for nroff and troff
75 .if n \{\
76 .    ds #H 0
77 .    ds #V .8m
78 .    ds #F .3m
79 .    ds #[ \f1
80 .    ds #] \fP
81 .\}
82 .if t \{\
83 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
84 .    ds #V .6m
85 .    ds #F 0
86 .    ds #[ \&
87 .    ds #] \&
88 .\}
89 .    \" simple accents for nroff and troff
90 .if n \{\
91 .    ds ' \&
92 .    ds ` \&
93 .    ds ^ \&
94 .    ds , \&
95 .    ds ~ ~
96 .    ds /
97 .\}
98 .if t \{\
99 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .\}
106 .    \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 .    \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 .    \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
121 \{\
122 .    ds : e
123 .    ds 8 ss
124 .    ds o a
125 .    ds d- d\h'-1'\(ga
126 .    ds D- D\h'-1'\(hy
127 .    ds th \o'bp'
128 .    ds Th \o'LP'
129 .    ds ae ae
130 .    ds Ae AE
131 .\}
132 .rm #[ #] #H #V #F C
133 .\" ========================================================================
134 .\"
135 .IX Title "OCSP 1"
136 .TH OCSP 1 "2019-02-26" "1.0.2r" "OpenSSL"
137 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
139 .if n .ad l
140 .nh
141 .SH "NAME"
142 openssl\-ocsp,
143 ocsp \- Online Certificate Status Protocol utility
144 .SH "SYNOPSIS"
145 .IX Header "SYNOPSIS"
146 \&\fBopenssl\fR \fBocsp\fR
147 [\fB\-out file\fR]
148 [\fB\-issuer file\fR]
149 [\fB\-cert file\fR]
150 [\fB\-serial n\fR]
151 [\fB\-signer file\fR]
152 [\fB\-signkey file\fR]
153 [\fB\-sign_other file\fR]
154 [\fB\-no_certs\fR]
155 [\fB\-req_text\fR]
156 [\fB\-resp_text\fR]
157 [\fB\-text\fR]
158 [\fB\-reqout file\fR]
159 [\fB\-respout file\fR]
160 [\fB\-reqin file\fR]
161 [\fB\-respin file\fR]
162 [\fB\-nonce\fR]
163 [\fB\-no_nonce\fR]
164 [\fB\-url \s-1URL\s0\fR]
165 [\fB\-host host:n\fR]
166 [\fB\-header name value\fR]
167 [\fB\-path\fR]
168 [\fB\-CApath dir\fR]
169 [\fB\-CAfile file\fR]
170 [\fB\-no_alt_chains\fR]
171 [\fB\-VAfile file\fR]
172 [\fB\-validity_period n\fR]
173 [\fB\-status_age n\fR]
174 [\fB\-noverify\fR]
175 [\fB\-verify_other file\fR]
176 [\fB\-trust_other\fR]
177 [\fB\-no_intern\fR]
178 [\fB\-no_signature_verify\fR]
179 [\fB\-no_cert_verify\fR]
180 [\fB\-no_chain\fR]
181 [\fB\-no_cert_checks\fR]
182 [\fB\-no_explicit\fR]
183 [\fB\-port num\fR]
184 [\fB\-index file\fR]
185 [\fB\-CA file\fR]
186 [\fB\-rsigner file\fR]
187 [\fB\-rkey file\fR]
188 [\fB\-rother file\fR]
189 [\fB\-resp_no_certs\fR]
190 [\fB\-nmin n\fR]
191 [\fB\-ndays n\fR]
192 [\fB\-resp_key_id\fR]
193 [\fB\-nrequest n\fR]
194 [\fB\-md5|\-sha1|...\fR]
195 .SH "DESCRIPTION"
196 .IX Header "DESCRIPTION"
197 The Online Certificate Status Protocol (\s-1OCSP\s0) enables applications to
198 determine the (revocation) state of an identified certificate (\s-1RFC 2560\s0).
199 .PP
200 The \fBocsp\fR command performs many common \s-1OCSP\s0 tasks. It can be used
201 to print out requests and responses, create requests and send queries
202 to an \s-1OCSP\s0 responder and behave like a mini \s-1OCSP\s0 server itself.
203 .SH "OCSP CLIENT OPTIONS"
204 .IX Header "OCSP CLIENT OPTIONS"
205 .IP "\fB\-out filename\fR" 4
206 .IX Item "-out filename"
207 specify output filename, default is standard output.
208 .IP "\fB\-issuer filename\fR" 4
209 .IX Item "-issuer filename"
210 This specifies the current issuer certificate. This option can be used
211 multiple times. The certificate specified in \fBfilename\fR must be in
212 \&\s-1PEM\s0 format. This option \fB\s-1MUST\s0\fR come before any \fB\-cert\fR options.
213 .IP "\fB\-cert filename\fR" 4
214 .IX Item "-cert filename"
215 Add the certificate \fBfilename\fR to the request. The issuer certificate
216 is taken from the previous \fBissuer\fR option, or an error occurs if no
217 issuer certificate is specified.
218 .IP "\fB\-serial num\fR" 4
219 .IX Item "-serial num"
220 Same as the \fBcert\fR option except the certificate with serial number
221 \&\fBnum\fR is added to the request. The serial number is interpreted as a
222 decimal integer unless preceded by \fB0x\fR. Negative integers can also
223 be specified by preceding the value by a \fB\-\fR sign.
224 .IP "\fB\-signer filename\fR, \fB\-signkey filename\fR" 4
225 .IX Item "-signer filename, -signkey filename"
226 Sign the \s-1OCSP\s0 request using the certificate specified in the \fBsigner\fR
227 option and the private key specified by the \fBsignkey\fR option. If
228 the \fBsignkey\fR option is not present then the private key is read
229 from the same file as the certificate. If neither option is specified then
230 the \s-1OCSP\s0 request is not signed.
231 .IP "\fB\-sign_other filename\fR" 4
232 .IX Item "-sign_other filename"
233 Additional certificates to include in the signed request.
234 .IP "\fB\-nonce\fR, \fB\-no_nonce\fR" 4
235 .IX Item "-nonce, -no_nonce"
236 Add an \s-1OCSP\s0 nonce extension to a request or disable \s-1OCSP\s0 nonce addition.
237 Normally if an \s-1OCSP\s0 request is input using the \fBrespin\fR option no
238 nonce is added: using the \fBnonce\fR option will force addition of a nonce.
239 If an \s-1OCSP\s0 request is being created (using \fBcert\fR and \fBserial\fR options)
240 a nonce is automatically added specifying \fBno_nonce\fR overrides this.
241 .IP "\fB\-req_text\fR, \fB\-resp_text\fR, \fB\-text\fR" 4
242 .IX Item "-req_text, -resp_text, -text"
243 print out the text form of the \s-1OCSP\s0 request, response or both respectively.
244 .IP "\fB\-reqout file\fR, \fB\-respout file\fR" 4
245 .IX Item "-reqout file, -respout file"
246 write out the \s-1DER\s0 encoded certificate request or response to \fBfile\fR.
247 .IP "\fB\-reqin file\fR, \fB\-respin file\fR" 4
248 .IX Item "-reqin file, -respin file"
249 read \s-1OCSP\s0 request or response file from \fBfile\fR. These option are ignored
250 if \s-1OCSP\s0 request or response creation is implied by other options (for example
251 with \fBserial\fR, \fBcert\fR and \fBhost\fR options).
252 .IP "\fB\-url responder_url\fR" 4
253 .IX Item "-url responder_url"
254 specify the responder \s-1URL.\s0 Both \s-1HTTP\s0 and \s-1HTTPS\s0 (\s-1SSL/TLS\s0) URLs can be specified.
255 .IP "\fB\-host hostname:port\fR, \fB\-path pathname\fR" 4
256 .IX Item "-host hostname:port, -path pathname"
257 if the \fBhost\fR option is present then the \s-1OCSP\s0 request is sent to the host
258 \&\fBhostname\fR on port \fBport\fR. \fBpath\fR specifies the \s-1HTTP\s0 path name to use
259 or \*(L"/\*(R" by default.
260 .IP "\fB\-header name value\fR" 4
261 .IX Item "-header name value"
262 If sending a request to an \s-1OCSP\s0 server, then the specified header name and
263 value are added to the \s-1HTTP\s0 request.  Note that the \fBname\fR and \fBvalue\fR must
264 be specified as two separate parameters, not as a single quoted string, and
265 that the header name does not have the trailing colon.
266 Some \s-1OCSP\s0 responders require a Host header; use this flag to provide it.
267 .IP "\fB\-timeout seconds\fR" 4
268 .IX Item "-timeout seconds"
269 connection timeout to the \s-1OCSP\s0 responder in seconds
270 .IP "\fB\-CAfile file\fR, \fB\-CApath pathname\fR" 4
271 .IX Item "-CAfile file, -CApath pathname"
272 file or pathname containing trusted \s-1CA\s0 certificates. These are used to verify
273 the signature on the \s-1OCSP\s0 response.
274 .IP "\fB\-no_alt_chains\fR" 4
275 .IX Item "-no_alt_chains"
276 See \fBverify\fR manual page for details.
277 .IP "\fB\-verify_other file\fR" 4
278 .IX Item "-verify_other file"
279 file containing additional certificates to search when attempting to locate
280 the \s-1OCSP\s0 response signing certificate. Some responders omit the actual signer's
281 certificate from the response: this option can be used to supply the necessary
282 certificate in such cases.
283 .IP "\fB\-trust_other\fR" 4
284 .IX Item "-trust_other"
285 the certificates specified by the \fB\-verify_other\fR option should be explicitly
286 trusted and no additional checks will be performed on them. This is useful
287 when the complete responder certificate chain is not available or trusting a
288 root \s-1CA\s0 is not appropriate.
289 .IP "\fB\-VAfile file\fR" 4
290 .IX Item "-VAfile file"
291 file containing explicitly trusted responder certificates. Equivalent to the
292 \&\fB\-verify_other\fR and \fB\-trust_other\fR options.
293 .IP "\fB\-noverify\fR" 4
294 .IX Item "-noverify"
295 don't attempt to verify the \s-1OCSP\s0 response signature or the nonce values. This
296 option will normally only be used for debugging since it disables all verification
297 of the responders certificate.
298 .IP "\fB\-no_intern\fR" 4
299 .IX Item "-no_intern"
300 ignore certificates contained in the \s-1OCSP\s0 response when searching for the
301 signers certificate. With this option the signers certificate must be specified
302 with either the \fB\-verify_other\fR or \fB\-VAfile\fR options.
303 .IP "\fB\-no_signature_verify\fR" 4
304 .IX Item "-no_signature_verify"
305 don't check the signature on the \s-1OCSP\s0 response. Since this option tolerates invalid
306 signatures on \s-1OCSP\s0 responses it will normally only be used for testing purposes.
307 .IP "\fB\-no_cert_verify\fR" 4
308 .IX Item "-no_cert_verify"
309 don't verify the \s-1OCSP\s0 response signers certificate at all. Since this option allows
310 the \s-1OCSP\s0 response to be signed by any certificate it should only be used for
311 testing purposes.
312 .IP "\fB\-no_chain\fR" 4
313 .IX Item "-no_chain"
314 do not use certificates in the response as additional untrusted \s-1CA\s0
315 certificates.
316 .IP "\fB\-no_explicit\fR" 4
317 .IX Item "-no_explicit"
318 do not explicitly trust the root \s-1CA\s0 if it is set to be trusted for \s-1OCSP\s0 signing.
319 .IP "\fB\-no_cert_checks\fR" 4
320 .IX Item "-no_cert_checks"
321 don't perform any additional checks on the \s-1OCSP\s0 response signers certificate.
322 That is do not make any checks to see if the signers certificate is authorised
323 to provide the necessary status information: as a result this option should
324 only be used for testing purposes.
325 .IP "\fB\-validity_period nsec\fR, \fB\-status_age age\fR" 4
326 .IX Item "-validity_period nsec, -status_age age"
327 these options specify the range of times, in seconds, which will be tolerated
328 in an \s-1OCSP\s0 response. Each certificate status response includes a \fBnotBefore\fR time and
329 an optional \fBnotAfter\fR time. The current time should fall between these two values, but
330 the interval between the two times may be only a few seconds. In practice the \s-1OCSP\s0
331 responder and clients clocks may not be precisely synchronised and so such a check
332 may fail. To avoid this the \fB\-validity_period\fR option can be used to specify an
333 acceptable error range in seconds, the default value is 5 minutes.
334 .Sp
335 If the \fBnotAfter\fR time is omitted from a response then this means that new status
336 information is immediately available. In this case the age of the \fBnotBefore\fR field
337 is checked to see it is not older than \fBage\fR seconds old. By default this additional
338 check is not performed.
339 .IP "\fB\-md5|\-sha1|\-sha256|\-ripemod160|...\fR" 4
340 .IX Item "-md5|-sha1|-sha256|-ripemod160|..."
341 this option sets digest algorithm to use for certificate identification
342 in the \s-1OCSP\s0 request. By default \s-1SHA\-1\s0 is used.
343 .SH "OCSP SERVER OPTIONS"
344 .IX Header "OCSP SERVER OPTIONS"
345 .IP "\fB\-index indexfile\fR" 4
346 .IX Item "-index indexfile"
347 \&\fBindexfile\fR is a text index file in \fBca\fR format containing certificate revocation
348 information.
349 .Sp
350 If the \fBindex\fR option is specified the \fBocsp\fR utility is in responder mode, otherwise
351 it is in client mode. The request(s) the responder processes can be either specified on
352 the command line (using \fBissuer\fR and \fBserial\fR options), supplied in a file (using the
353 \&\fBrespin\fR option) or via external \s-1OCSP\s0 clients (if \fBport\fR or \fBurl\fR is specified).
354 .Sp
355 If the \fBindex\fR option is present then the \fB\s-1CA\s0\fR and \fBrsigner\fR options must also be
356 present.
357 .IP "\fB\-CA file\fR" 4
358 .IX Item "-CA file"
359 \&\s-1CA\s0 certificate corresponding to the revocation information in \fBindexfile\fR.
360 .IP "\fB\-rsigner file\fR" 4
361 .IX Item "-rsigner file"
362 The certificate to sign \s-1OCSP\s0 responses with.
363 .IP "\fB\-rother file\fR" 4
364 .IX Item "-rother file"
365 Additional certificates to include in the \s-1OCSP\s0 response.
366 .IP "\fB\-resp_no_certs\fR" 4
367 .IX Item "-resp_no_certs"
368 Don't include any certificates in the \s-1OCSP\s0 response.
369 .IP "\fB\-resp_key_id\fR" 4
370 .IX Item "-resp_key_id"
371 Identify the signer certificate using the key \s-1ID,\s0 default is to use the subject name.
372 .IP "\fB\-rkey file\fR" 4
373 .IX Item "-rkey file"
374 The private key to sign \s-1OCSP\s0 responses with: if not present the file specified in the
375 \&\fBrsigner\fR option is used.
376 .IP "\fB\-port portnum\fR" 4
377 .IX Item "-port portnum"
378 Port to listen for \s-1OCSP\s0 requests on. The port may also be specified using the \fBurl\fR
379 option.
380 .IP "\fB\-nrequest number\fR" 4
381 .IX Item "-nrequest number"
382 The \s-1OCSP\s0 server will exit after receiving \fBnumber\fR requests, default unlimited.
383 .IP "\fB\-nmin minutes\fR, \fB\-ndays days\fR" 4
384 .IX Item "-nmin minutes, -ndays days"
385 Number of minutes or days when fresh revocation information is available: used in the
386 \&\fBnextUpdate\fR field. If neither option is present then the \fBnextUpdate\fR field is 
387 omitted meaning fresh revocation information is immediately available.
388 .SH "OCSP Response verification."
389 .IX Header "OCSP Response verification."
390 \&\s-1OCSP\s0 Response follows the rules specified in \s-1RFC2560.\s0
391 .PP
392 Initially the \s-1OCSP\s0 responder certificate is located and the signature on
393 the \s-1OCSP\s0 request checked using the responder certificate's public key.
394 .PP
395 Then a normal certificate verify is performed on the \s-1OCSP\s0 responder certificate
396 building up a certificate chain in the process. The locations of the trusted
397 certificates used to build the chain can be specified by the \fBCAfile\fR
398 and \fBCApath\fR options or they will be looked for in the standard OpenSSL
399 certificates directory.
400 .PP
401 If the initial verify fails then the \s-1OCSP\s0 verify process halts with an
402 error.
403 .PP
404 Otherwise the issuing \s-1CA\s0 certificate in the request is compared to the \s-1OCSP\s0
405 responder certificate: if there is a match then the \s-1OCSP\s0 verify succeeds.
406 .PP
407 Otherwise the \s-1OCSP\s0 responder certificate's \s-1CA\s0 is checked against the issuing
408 \&\s-1CA\s0 certificate in the request. If there is a match and the OCSPSigning
409 extended key usage is present in the \s-1OCSP\s0 responder certificate then the
410 \&\s-1OCSP\s0 verify succeeds.
411 .PP
412 Otherwise, if \fB\-no_explicit\fR is \fBnot\fR set the root \s-1CA\s0 of the \s-1OCSP\s0 responders
413 \&\s-1CA\s0 is checked to see if it is trusted for \s-1OCSP\s0 signing. If it is the \s-1OCSP\s0
414 verify succeeds.
415 .PP
416 If none of these checks is successful then the \s-1OCSP\s0 verify fails.
417 .PP
418 What this effectively means if that if the \s-1OCSP\s0 responder certificate is
419 authorised directly by the \s-1CA\s0 it is issuing revocation information about
420 (and it is correctly configured) then verification will succeed.
421 .PP
422 If the \s-1OCSP\s0 responder is a \*(L"global responder\*(R" which can give details about
423 multiple CAs and has its own separate certificate chain then its root
424 \&\s-1CA\s0 can be trusted for \s-1OCSP\s0 signing. For example:
425 .PP
426 .Vb 1
427 \& openssl x509 \-in ocspCA.pem \-addtrust OCSPSigning \-out trustedCA.pem
428 .Ve
429 .PP
430 Alternatively the responder certificate itself can be explicitly trusted
431 with the \fB\-VAfile\fR option.
432 .SH "NOTES"
433 .IX Header "NOTES"
434 As noted, most of the verify options are for testing or debugging purposes.
435 Normally only the \fB\-CApath\fR, \fB\-CAfile\fR and (if the responder is a 'global
436 \&\s-1VA\s0') \fB\-VAfile\fR options need to be used.
437 .PP
438 The \s-1OCSP\s0 server is only useful for test and demonstration purposes: it is
439 not really usable as a full \s-1OCSP\s0 responder. It contains only a very
440 simple \s-1HTTP\s0 request handling and can only handle the \s-1POST\s0 form of \s-1OCSP\s0
441 queries. It also handles requests serially meaning it cannot respond to
442 new requests until it has processed the current one. The text index file
443 format of revocation is also inefficient for large quantities of revocation
444 data.
445 .PP
446 It is possible to run the \fBocsp\fR application in responder mode via a \s-1CGI\s0
447 script using the \fBrespin\fR and \fBrespout\fR options.
448 .SH "EXAMPLES"
449 .IX Header "EXAMPLES"
450 Create an \s-1OCSP\s0 request and write it to a file:
451 .PP
452 .Vb 1
453 \& openssl ocsp \-issuer issuer.pem \-cert c1.pem \-cert c2.pem \-reqout req.der
454 .Ve
455 .PP
456 Send a query to an \s-1OCSP\s0 responder with \s-1URL\s0 http://ocsp.myhost.com/ save the 
457 response to a file and print it out in text form
458 .PP
459 .Vb 2
460 \& openssl ocsp \-issuer issuer.pem \-cert c1.pem \-cert c2.pem \e
461 \&     \-url http://ocsp.myhost.com/ \-resp_text \-respout resp.der
462 .Ve
463 .PP
464 Read in an \s-1OCSP\s0 response and print out text form:
465 .PP
466 .Vb 1
467 \& openssl ocsp \-respin resp.der \-text
468 .Ve
469 .PP
470 \&\s-1OCSP\s0 server on port 8888 using a standard \fBca\fR configuration, and a separate
471 responder certificate. All requests and responses are printed to a file.
472 .PP
473 .Vb 2
474 \& openssl ocsp \-index demoCA/index.txt \-port 8888 \-rsigner rcert.pem \-CA demoCA/cacert.pem
475 \&        \-text \-out log.txt
476 .Ve
477 .PP
478 As above but exit after processing one request:
479 .PP
480 .Vb 2
481 \& openssl ocsp \-index demoCA/index.txt \-port 8888 \-rsigner rcert.pem \-CA demoCA/cacert.pem
482 \&     \-nrequest 1
483 .Ve
484 .PP
485 Query status information using internally generated request:
486 .PP
487 .Vb 2
488 \& openssl ocsp \-index demoCA/index.txt \-rsigner rcert.pem \-CA demoCA/cacert.pem
489 \&     \-issuer demoCA/cacert.pem \-serial 1
490 .Ve
491 .PP
492 Query status information using request read from a file, write response to a
493 second file.
494 .PP
495 .Vb 2
496 \& openssl ocsp \-index demoCA/index.txt \-rsigner rcert.pem \-CA demoCA/cacert.pem
497 \&     \-reqin req.der \-respout resp.der
498 .Ve
499 .SH "HISTORY"
500 .IX Header "HISTORY"
501 The \-no_alt_chains options was first added to OpenSSL 1.0.2b.