openssl s_client -connect localhost:8200 </dev/null 2>/dev/null | openssl x509 -inform pem -noout -fingerprint Or openssl s_client -connect localhost:8200 </dev/null 2>/dev/null | openssl x509 -inform pem -text