Skip to content

Instantly share code, notes, and snippets.

@mfilenko
Created December 7, 2017 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfilenko/9783472ddff97c079fb4b278b23989c9 to your computer and use it in GitHub Desktop.
Save mfilenko/9783472ddff97c079fb4b278b23989c9 to your computer and use it in GitHub Desktop.
Get SHA1 fingerprint
openssl s_client -connect host:443 -servername host < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin | grep -oP "(([0-9A-Z]){2}:){19}([0-9A-Z]){2}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment