summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2020-07-14 09:46:17 +0000
committerinoguchi <>2020-07-14 09:46:17 +0000
commit1a62e4f82836c16074b9e88e16ff84e51ea3c642 (patch)
treec6db5b451a593e3afa5bc484bc1884619dce2df5 /src
parentd504e61a409f63f8ce6c117fe828cd0babb37589 (diff)
downloadopenbsd-1a62e4f82836c16074b9e88e16ff84e51ea3c642.tar.gz
openbsd-1a62e4f82836c16074b9e88e16ff84e51ea3c642.tar.bz2
openbsd-1a62e4f82836c16074b9e88e16ff84e51ea3c642.zip
Add manual for openssl(1) certhash
ok jmc@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/openssl.159
1 files changed, 57 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 7b446f4141..75ef2dc17f 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.122 2020/05/13 10:19:25 inoguchi Exp $ 1.\" $OpenBSD: openssl.1,v 1.123 2020/07/14 09:46:17 inoguchi Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -110,7 +110,7 @@
110.\" copied and put under another distribution licence 110.\" copied and put under another distribution licence
111.\" [including the GNU Public Licence.] 111.\" [including the GNU Public Licence.]
112.\" 112.\"
113.Dd $Mdocdate: May 13 2020 $ 113.Dd $Mdocdate: July 14 2020 $
114.Dt OPENSSL 1 114.Dt OPENSSL 1
115.Os 115.Os
116.Sh NAME 116.Sh NAME
@@ -847,6 +847,61 @@ The default value is
847The same as 847The same as
848.Fl extensions . 848.Fl extensions .
849.El 849.El
850.Tg certhash
851.Sh CERTHASH
852.Bl -hang -width "openssl certhash"
853.It Nm openssl certhash
854.Bk -words
855.Op Fl nv
856.Ar dir ...
857.Ek
858.El
859.Pp
860The
861.Nm certhash
862command calculates a hash value of
863.Qq .pem
864file in the specified directory list and creates symbolic links for each file,
865where the name of the link is the hash value.
866See the
867.Xr SSL_CTX_load_verify_locations 3
868manual page for how hash links are used.
869.Pp
870The links created are of the form
871.Qq HHHHHHHH.D ,
872where each
873.Sq H
874is a hexadecimal character and
875.Sq D
876is a single decimal digit.
877The hashes for CRLs look similar, except the letter
878.Sq r
879appears after the period, like this:
880.Qq HHHHHHHH.rD .
881When processing a directory,
882.Nm certhash
883will first remove all links that have a name in that syntax and invalid
884reference.
885.Pp
886Multiple objects may have the same hash; they will be indicated by
887incrementing the
888.Sq D
889value.
890Duplicates are found by comparing the full SHA256 fingerprint.
891A warning will be displayed if a duplicate is found.
892.Pp
893A warning will also be displayed if there are files that cannot be parsed as
894either a certificate or a CRL.
895.Pp
896The options are as follows:
897.Bl -tag -width Ds
898.It Fl n
899Perform a dry-run, and do not make any changes.
900.It Fl v
901Print extra details about the processing.
902.It Ar dir ...
903Specify the directories to process.
904.El
850.Tg ciphers 905.Tg ciphers
851.Sh CIPHERS 906.Sh CIPHERS
852.Nm openssl ciphers 907.Nm openssl ciphers