Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created February 5, 2019 08:49
Embed
What would you like to do?
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