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 [2018/09/26 13:43] 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 44: | Line 46: | ||
==== Testing ==== | ==== Testing ==== | ||
- | This first test is the one that is easiest and should work from anywhere: | + | 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 68: | Line 82: | ||
</ | </ | ||
- | ==== SMTP ==== | + | === Show Expiration Date === |
+ | |||
+ | Pipe the output of other '' | ||
+ | |||
+ | < | ||
+ | | openssl x509 -noout -enddate | ||
+ | </ | ||
+ | |||
+ | ==== SMTP and SMTPS ==== | ||
< | < | ||
Line 74: | Line 96: | ||
openssl s_client -connect fqdn.hostname.tld: | openssl s_client -connect fqdn.hostname.tld: | ||
+ | |||
+ | openssl s_client -crlf -connect fqdn.hostname.tld: | ||
</ | </ | ||