networking:ssl-installation
This is an old revision of the document!
Check SSL installation
Test SSL connectivity with s_client commands to check whether the certificate is valid, trusted, and complete. The OpenSSL toolkit helps to check the SSL certificate installation on a server both remotely and locally. In the command line, enter openssl s_client -connect <hostname>:<port>. This opens an SSL connection to the specified hostname and port and prints the SSL certificate.
| Command Options | Description | Example |
|---|---|---|
| -connect | Tests connectivity to an HTTPS service. | openssl s_client -connect <hostname>:<port> |
| -showcerts | Prints all certificates in the certificate chain presented by the SSL service. Useful when troubleshooting missing intermediate CA certificate issues. | openssl s_client -connect <hostname>:<port> -showcerts |
In order to check STARTTLS ports, the following command should be run. Replace [port] with the port number and [protocol] with smtp, pop3 or imap value:
openssl s_client -connect example.com:[port] -servername example.com -starttls [protocol] openssl s_client -connect 192.168.178.xx:25 -servername oscardegroot.nl -starttls smtp openssl s_client -connect 192.168.178.xx:143 -servername oscardegroot.nl -starttls imap
In order to check non-STARTTLS ports, use the following command:
openssl s_client -connect example.com:[port] -servername example.com openssl s_client -connect 192.168.178.xx:443 -servername www.oscardegroot.nl
networking/ssl-installation.1723653784.txt.gz · Last modified: by oscar
