openssl-s_client

OpenSSL command to create TLS client connections.

TLDR

Display the start and expiry dates for a domain's certificate

$ openssl s_client -connect [host]:[port] 2>/dev/null | openssl x509 -noout -dates
copy

Display the certificate presented by an SSL/TLS server

$ openssl s_client -connect [host]:[port] </dev/null
copy

Display the complete certificate chain of an HTTPS server

$ openssl s_client -connect [host]:443 -showcerts </dev/null
copy

Copied to clipboard
free 100$ digital ocean credit