openssl: add fingerprint method

This commit is contained in:
Jörg Thalheim 2017-07-30 09:26:56 +01:00 committed by GitHub
parent edd7b5e806
commit ae309c7dc4

View file

@ -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 <hostname>:443 2> /dev/null | \
awk '/-----BEGIN/,/END CERTIFICATE-----/' | \