Check the SSL certificate expiration date of a website
check ssl certificate expiration date command line | when does my ssl certificate expire | openssl show certificate dates | check if let's encrypt certificate expired | openssl | certificate | expiry | httpsopenssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -datesOpens a TLS connection, passes the delivered certificate to openssl x509 and shows notBefore and notAfter. The -servername option sends the hostname via SNI, without it a server with many domains (such as Plesk) often returns the default certificate instead of the right one. It checks what visitors actually see, not what is stored on disk.
Note: For other ports such as 8443 or 993, simply adjust the port number.
Also searched as
- check ssl certificate expiration date command line
- when does my ssl certificate expire
- openssl show certificate dates
- check if let's encrypt certificate expired