- Published on
OpenSSL
X509
Print out a certificate stored in vault
openssl x509 -in <(vault kv get -field=${body field} ${vault path}) -text -noout
s_client
Print out a certificate of a remote host
openssl s_client -servername ${server name} -connect ${host}:${port} | openssl x509 -noout -text
## For example
openssl s_client -servername google.com -connect google.com:443 | openssl x509 -noout -text