linux verify dates of SSL certificates
linux verify dates of SSL certificates
Hi, does anyone knows the linux command to show the expire date of an SSL certificate ?
Re: linux verify dates of SSL certificates
You can use the following command :
An example:
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
Re: linux verify dates of SSL certificates
If you havce access to the file directly:
Code: Select all
less certificate.crt | openssl x509 -noout -dates