summaryrefslogtreecommitdiff
path: root/src/usr.sbin/ocspcheck/ocspcheck.8
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.897
1 files changed, 97 insertions, 0 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.8 b/src/usr.sbin/ocspcheck/ocspcheck.8
new file mode 100644
index 0000000000..2ef5d26fc3
--- /dev/null
+++ b/src/usr.sbin/ocspcheck/ocspcheck.8
@@ -0,0 +1,97 @@
1.\" $OpenBSD: ocspcheck.8,v 1.1 2017/01/24 08:50:57 beck Exp $
2.\"
3.\" Copyright (c) 2017 Bob Beck <beck@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: January 24 2017 $
18.Dt OCSPCHECK 8
19.Os
20.Sh NAME
21.Nm ocspcheck
22.Nd Check a certificate for validity against its OSCP responder
23.Sh SYNOPSIS
24.Nm
25.Op Fl vN
26.Op Fl o Ar staplefile
27.Op Fl C Ar CAfile
28.Ar file
29.Sh DESCRIPTION
30The
31.Nm
32utility validates a PEM format certificate against the OCSP responder
33encoded in the certificate that is specified by the
34.Ar file
35argument.
36Normally it should be used for checking server certificates
37and maintaining saved OCSP responses to be used for OCSP stapling.
38.Pp
39The options are as follows:
40.Bl -tag -width Ds
41.It Fl C Ar CAfile
42Specify a PEM formatted root certificate bundle to use for the validation of
43requests.
44By default no certificates are used beyond those in the
45certificate chain provided by the
46.Ar file
47argument.
48.It Fl o Ar staplefile
49Specify an output filename where the DER encoded response from the
50OCSP server will be written, if the OCSP response validates.
51A filename
52of
53.Ar -
54will write the response to standard output. By default the response
55is not saved.
56.It Fl N
57Do not use a nonce value in the OCSP request, or validate that the
58nonce was returned in the OCSP response.
59By default a nonce is always used and validated.
60The use of this flag is a security risk as it will allow OCSP
61responses to be replayed.
62It should not be used unless the OCSP server does not support the
63use of OCSP nonces.
64.It Fl v
65Increase verbosity.
66This flag may be specified multiple times to get more verbose output.
67The default behaviour is to be silent unless something goes wrong.
68.Sh EXIT STATUS
69.Nm
70exits 0 if the OCSP response validates for the
71certificate in
72.Ar file
73and all output is successfully written out.
74Otherwise
75.Nm
76will exit >0.
77.Sh SEE ALSO
78.Xr httpd 8 ,
79.Xr nc 1 ,
80.Xr tls_config_set_ocsp_staple_mem 3 ,
81.Xr tls_config_set_ocsp_staple_file 3 ,
82.Sh BUGS
83.Nm
84will create the output file if it does not exit.
85On failure a newly created output file will not be removed.
86.Sh CAVEATS
87While
88.Nm
89could possibly be used in scripts to query responders for server
90certificates seen on client connections, this is almost always a bad
91idea.
92God kills a kitten every time you make an OCSP query from the
93client side of a TLS connection.
94.Sh AUTHORS
95.Nm
96was written by
97.An Bob Beck