test TLS : openssl.exe s_client -tls1_2 -connect tserver1:443
How to verify SSL certificates with OpenSSL on Command Line
To make sure that you have installed the SSL certificate correctly, we have have compiled a cheatsheet with OpenSSL commands to verify that multiple protocols use the correct certificate.
Test FTP certificate
openssl s_client -connect server.yourwebhoster.eu:21 -starttls ftp
Test POP3 certificate
openssl s_client -connect server.yourwebhoster.eu:995
Test IMAP certificate
openssl s_client -connect server.yourwebhoster.eu:993
Test SMTP SSL certificate
openssl s_client -connect server.yourwebhoster.eu:465
Test SMTP TLS certificate
openssl s_client -connect server.yourwebhoster.eu:587 -starttls smtp
Test HTTPS certificate
openssl s_client -connect server.yourwebhoster.eu:443
Test DirectAdmin certificate
openssl s_client -connect server.yourwebhoster.eu:2222
Tip: Add the following to extract the certificate expiry date from the server.
2>/dev/null | openssl x509 -noout -dates
Comments
Post a Comment