linux verify dates of SSL certificates
Posted: Wed Jul 06, 2022 8:28 am
Hi, does anyone knows the linux command to show the expire date of an SSL certificate ?
Forum of Webmaster2020.com
https://www.webmaster2020.com/forum/
Code: Select all
echo | openssl s_client -servername SERVERNAME -connect SERVER:PORT 2>/dev/null | openssl x509 -noout -dates
Code: Select all
echo | openssl s_client -servername www.webmaster2020.com -connect www.webmaster2020.com:443 2>/dev/null | openssl x509 -noout -dates
notBefore=Jun 24 00:00:00 2020 GMT
notAfter=Aug 1 23:59:59 2022 GMT
Code: Select all
less certificate.crt | openssl x509 -noout -dates