summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-12-30 03:07:47 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-12-30 03:07:47 +0100
commit57f8b6ec7591007ff22627038b51c4f4aa2a9be8 (patch)
tree3d4cbe53bdb48b2c2b4145bafb5b4f2853f638fa /sys/man
parentb42d441a230bad9fd1ae8e3543b1c0f28c7c62aa (diff)
libsec: implement SPKI fingerprinting for okCertificate()
Instead of only using a hash over the whole certificate for white/black-listing, now we can also use a hash over the Subject Public Key Info (SPKI) field of the certificate which contians the public key algorithm and the public key itself. This allows certificates to be renewed independendtly of the public key. X509dump() now prints the public key thumbprint in addition to the certificate thumbprint. tlsclient will print the certificate when run with -D flag. okCertificate() will print the public key thumbprint in its error string when no match has been found.
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/8/tlssrv5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/man/8/tlssrv b/sys/man/8/tlssrv
index 462be928b..9ebaa0104 100644
--- a/sys/man/8/tlssrv
+++ b/sys/man/8/tlssrv
@@ -134,9 +134,8 @@ flag
(and, optionally, the
.B -x
flag)
-is given, the remote server must present a key
-whose SHA1 hash is listed in
-the file
+is given, the remote server must present a public key
+whose SHA1 or SHA256 hash is listed in the file
.I trustedkeys
but not in the file
.IR excludedkeys .