Display the certificate presented by an SSL/TLS server

openssl s_client

  • OpenSSL command to create TLS client connections.
    More information: <https://www.openssl.org/docs/manmaster/man1/openssl-s_client.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

openssl s_client -connect {{host}}:{{port}} </dev/null

click the source code to copy install openssl s_client on any operating system with command-not-found.com