diff options
Diffstat (limited to 'src/usr.sbin/ocspcheck/ocspcheck.8')
| -rw-r--r-- | src/usr.sbin/ocspcheck/ocspcheck.8 | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.8 b/src/usr.sbin/ocspcheck/ocspcheck.8 deleted file mode 100644 index 19f55fb838..0000000000 --- a/src/usr.sbin/ocspcheck/ocspcheck.8 +++ /dev/null | |||
| @@ -1,111 +0,0 @@ | |||
| 1 | .\" $OpenBSD: ocspcheck.8,v 1.9 2017/11/29 21:15:45 jmc 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: November 29 2017 $ | ||
| 18 | .Dt OCSPCHECK 8 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm ocspcheck | ||
| 22 | .Nd check a certificate for validity against its OCSP responder | ||
| 23 | .Sh SYNOPSIS | ||
| 24 | .Nm | ||
| 25 | .Op Fl Nv | ||
| 26 | .Op Fl C Ar CAfile | ||
| 27 | .Op Fl i Ar staplefile | ||
| 28 | .Op Fl o Ar staplefile | ||
| 29 | .Ar file | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | The | ||
| 32 | .Nm | ||
| 33 | utility validates a PEM format certificate against the OCSP responder | ||
| 34 | encoded in the certificate specified by the | ||
| 35 | .Ar file | ||
| 36 | argument. | ||
| 37 | Normally it should be used for checking server certificates | ||
| 38 | and maintaining saved OCSP responses to be used for OCSP stapling. | ||
| 39 | .Pp | ||
| 40 | The options are as follows: | ||
| 41 | .Bl -tag -width Ds | ||
| 42 | .It Fl C Ar CAfile | ||
| 43 | Specify a PEM format root certificate bundle to use for the validation of | ||
| 44 | requests. | ||
| 45 | By default no certificates are used beyond those in the | ||
| 46 | certificate chain provided by the | ||
| 47 | .Ar file | ||
| 48 | argument. | ||
| 49 | .It Fl i Ar staplefile | ||
| 50 | Specify an input filename from which a DER-encoded OCSP response | ||
| 51 | will be read instead of fetching it from the OCSP server. | ||
| 52 | A filename | ||
| 53 | of | ||
| 54 | .Sq - | ||
| 55 | will read the response from standard input. | ||
| 56 | .It Fl N | ||
| 57 | Do not use a nonce value in the OCSP request, or validate that the | ||
| 58 | nonce was returned in the OCSP response. | ||
| 59 | By default a nonce is always used and validated when retrieving | ||
| 60 | a response from an OCSP server. | ||
| 61 | The use of this flag is a security risk as it will allow OCSP | ||
| 62 | responses to be replayed. | ||
| 63 | It should not be used unless the OCSP server does not support the | ||
| 64 | use of OCSP nonces. | ||
| 65 | .It Fl o Ar staplefile | ||
| 66 | Specify an output filename where the DER encoded response from the | ||
| 67 | OCSP server will be written, if the OCSP response validates. | ||
| 68 | A filename | ||
| 69 | of | ||
| 70 | .Sq - | ||
| 71 | will write the response to standard output. | ||
| 72 | By default the response is not saved. | ||
| 73 | .It Fl v | ||
| 74 | Increase verbosity. | ||
| 75 | This flag may be specified multiple times to get more verbose output. | ||
| 76 | The default behaviour is to be silent unless something goes wrong. | ||
| 77 | .El | ||
| 78 | .Sh EXIT STATUS | ||
| 79 | The | ||
| 80 | .Nm | ||
| 81 | utility exits 0 if the OCSP response validates for the certificate in | ||
| 82 | .Ar file | ||
| 83 | and all output is successfully written out. | ||
| 84 | .Nm | ||
| 85 | exits >0 if an error occurs or the OCSP response fails to validate. | ||
| 86 | .Sh SEE ALSO | ||
| 87 | .Xr nc 1 , | ||
| 88 | .Xr tls_config_set_ocsp_staple_file 3 , | ||
| 89 | .Xr tls_config_set_ocsp_staple_mem 3 , | ||
| 90 | .Xr httpd 8 | ||
| 91 | .Sh HISTORY | ||
| 92 | The | ||
| 93 | .Nm | ||
| 94 | utility first appeared in | ||
| 95 | .Ox 6.1 . | ||
| 96 | .Sh AUTHORS | ||
| 97 | .Nm | ||
| 98 | was written by | ||
| 99 | .An Bob Beck . | ||
| 100 | .Sh CAVEATS | ||
| 101 | While | ||
| 102 | .Nm | ||
| 103 | could possibly be used in scripts to query responders for server | ||
| 104 | certificates seen on client connections, this is almost always a bad | ||
| 105 | idea. | ||
| 106 | God kills a kitten every time you make an OCSP query from the | ||
| 107 | client side of a TLS connection. | ||
| 108 | .Sh BUGS | ||
| 109 | .Nm | ||
| 110 | will create the output file if it does not exist. | ||
| 111 | On failure a newly created output file will not be removed. | ||
