From 98111e76252cabf150753e6fecd12e377268741d Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 30 Oct 2015 20:11:39 +0100 Subject: [PATCH] Add helpful command to fingerprint docs --- docs/ssl-tutorial.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ssl-tutorial.rst b/docs/ssl-tutorial.rst index 096d6ce..00f5770 100644 --- a/docs/ssl-tutorial.rst +++ b/docs/ssl-tutorial.rst @@ -17,6 +17,10 @@ To pin the certificate by SHA1- or MD5-fingerprint:: verify_fingerprint = "94:FD:7A:CB:50:75:A4:69:82:0A:F8:23:DF:07:FC:69:3E:CD:90:CA" #verify = false # Optional: Disable CA validation, useful for self-signed certs +You can use the following command for obtaining a SHA-1 fingerprint:: + + echo -n | openssl s_client -connect unterwaditzer.net:443 | openssl x509 -noout -fingerprint + .. _ssl-cas: Custom root CAs