User Tools

Site Tools


networking:ssl-installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:ssl-installation [2022/11/07 17:13] – created oscarnetworking:ssl-installation [2024/08/14 16:45] (current) oscar
Line 1: Line 1:
 ===== Check SSL installation ===== ===== Check SSL installation =====
-The OpenSSL toolkit helps to check the SSL certificate installation on a server both remotely and locally. 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:+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| 
 + 
 +==== Port using STARTTLS ==== 
 +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 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:25 -servername oscardegroot.nl -starttls smtp
   openssl s_client -connect 192.168.178.xx:143 -servername oscardegroot.nl -starttls imap   openssl s_client -connect 192.168.178.xx:143 -servername oscardegroot.nl -starttls imap
 +  
 +==== Port not using STARTTLS ====
 In order to check non-STARTTLS ports, use the following command: 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   openssl s_client -connect 192.168.178.xx:443 -servername www.oscardegroot.nl
 +  openssl s_client -connect example.com:[port] -servername example.com
 +
  
  
networking/ssl-installation.1667841186.txt.gz · Last modified: by oscar