Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created February 5, 2019 08:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohan-molloy/93976ce66e4206fbc4b2b8d451fb3281 to your computer and use it in GitHub Desktop.
Save rohan-molloy/93976ce66e4206fbc4b2b8d451fb3281 to your computer and use it in GitHub Desktop.
Get SSH Random Art (visualization of key fingerprint) of a remote TLS server
random_art_from_tls(){
echo \
| openssl s_client -connect $1:443 -servername $1 2>/dev/null \
| openssl x509 -noout -pubkey \
| ssh-keygen -vi -m PKCS8 -f /dev/stdin \
| ssh-keygen -vlf /dev/stdin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment