OpenSSL Test

TiTi
Nov 30, 2020

Test SSL from my host to neighbor host

$ openssl s_client -host <localhost> -port 443

openssl s_client -host sanook.com -port 443

$ openssl s_client -host <localhost> -port 443 -quiet

openssl s_client -host sanook.com -port 443 -quiet

$ openssl s_client -showcerts -connect <localhost>:<port>

openssl s_client -showcerts -host sanook.com -port 443

$ openssl s_client -verify_return_error -connect <localhost>:<port>

openssl s_client -verify_return_error -host sanook.com -port 443

show expire date cert
$ openssl s_client -connect <localhost>:<port>| openssl x509 -noout -dates

openssl s_client -connect sanook.com:443 |openssl x509 -noout -dates

ref: https://www.cyberciti.biz/faq/find-check-tls-ssl-certificate-expiry-date-from-linux-unix/

--

--