Skip to content

Instantly share code, notes, and snippets.

@kvhnuke
Created January 24, 2019 03:45
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 kvhnuke/5b0894a8dcde26f62fb963bed1ba7e3f to your computer and use it in GitHub Desktop.
Save kvhnuke/5b0894a8dcde26f62fb963bed1ba7e3f to your computer and use it in GitHub Desktop.
OpenSSL ssl cert commands
# get sha-256 fingerprint of ssl cert
openssl s_client -showcerts -connect myetherwallet.com:443 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256 -inform pem
# export ssl cert of a website to pem
openssl s_client -showcerts -connect beta.myetherwallet.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM > mycertfile.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment