Set the Server Name Indicator (SNI) when connecting to the 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}} -servername {{hostname}}

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