This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:security:ssl_tls_cert_testing [2017/04/20 08:02] gcooper |
internet:security:ssl_tls_cert_testing [2022/03/22 08:46] (current) gcooper |
||
---|---|---|---|
Line 12: | Line 12: | ||
|443 | |443 | ||
|21 |FTP - TLS | | |21 |FTP - TLS | | ||
- | |25 |Mail - TLS | | + | |25 |SMTP - TLS | |
- | |465 |Mail - SSL | | + | |465 |SMTP - SSL | |
- | |587 |Mail - TLS | | + | |587 |SMTP - TLS | |
+ | |993 |IMAP - SSL | | ||
+ | |995 |POP - SSL | ||
|10000 | |10000 | ||
|20000 | |20000 | ||
Line 20: | Line 22: | ||
===== Web Tools ===== | ===== Web Tools ===== | ||
- | Check Internet accessible hosts here: https:// | + | Check Internet accessible hosts here: |
- | or here: http:// | + | https:// |
+ | |||
+ | https:// | ||
+ | |||
+ | http:// | ||
===== OpenSSL ===== | ===== OpenSSL ===== | ||
Line 38: | Line 44: | ||
</ | </ | ||
- | This first test is the one that is easiest and should work from anywhere: | + | ==== Testing ==== |
+ | |||
+ | The OpenSSL toolkit allows checking SSL certificate installation on a server either remotely or locally. To check STARTTLS ports, run the following command replacing [port] with the port number and [protocol] with **smtp**, **pop3** or **imap** value (see the example below) respectively: | ||
+ | |||
+ | < | ||
+ | openssl s_client -connect example.com: | ||
+ | </ | ||
+ | |||
+ | The same command but without -starttls switch can be used for checking non-STARTTLS ports: | ||
+ | |||
+ | < | ||
+ | openssl s_client -connect example.com: | ||
+ | </ | ||
+ | |||
+ | This test is easiest and should work from anywhere: | ||
< | < | ||
Line 60: | Line 80: | ||
< | < | ||
openssl s_client -tls1 -crlf -showcerts -debug -CAfile / | openssl s_client -tls1 -crlf -showcerts -debug -CAfile / | ||
+ | </ | ||
+ | |||
+ | === Show Expiration Date === | ||
+ | |||
+ | Pipe the output of other '' | ||
+ | |||
+ | < | ||
+ | | openssl x509 -noout -enddate | ||
+ | </ | ||
+ | |||
+ | ==== SMTP and SMTPS ==== | ||
+ | |||
+ | < | ||
+ | openssl s_client -connect fqdn.hostname.tld: | ||
+ | |||
+ | openssl s_client -connect fqdn.hostname.tld: | ||
+ | |||
+ | openssl s_client -crlf -connect fqdn.hostname.tld: | ||
</ | </ | ||
Line 68: | Line 106: | ||
< | < | ||
curl -G -v --key / | curl -G -v --key / | ||
+ | </ | ||
+ | |||
+ | ===== Apache ===== | ||
+ | |||
+ | See how your Apache web server is configured for SSL: | ||
+ | |||
+ | < | ||
+ | grep -R SSL / | ||
</ | </ | ||