Skip to content

Instantly share code, notes, and snippets.

@thetminko
Created September 14, 2021 13:36
Show Gist options
  • Save thetminko/3a282c3fad50c7014d886720cebfe592 to your computer and use it in GitHub Desktop.
Save thetminko/3a282c3fad50c7014d886720cebfe592 to your computer and use it in GitHub Desktop.
SSL public key
openssl s_client -servername $1 -connect $1:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment