From ae309c7dc492ead7f0ed82f5250b1600405801a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 30 Jul 2017 09:26:56 +0100 Subject: [PATCH] openssl: add fingerprint method --- cheat/cheatsheets/openssl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/openssl b/cheat/cheatsheets/openssl index 9254c1c..3d97e5b 100644 --- a/cheat/cheatsheets/openssl +++ b/cheat/cheatsheets/openssl @@ -15,6 +15,9 @@ openssl req -text -noout -in server.csr # To show certificate information for generated certificate openssl x509 -text -noout -in server.crt +# To get the sha256 fingerprint of a certificate +openssl x509 -in server.crt -noout -sha256 -fingerprint + # To view certificate expiration: echo | openssl s_client -connect :443 2> /dev/null | \ awk '/-----BEGIN/,/END CERTIFICATE-----/' | \