Openssl view website ssl certificate expiry date
Openssl view website ssl certificate expiry date
Openssl view website ssl certificate expiry date
Cert expiry causes some of the most avoidable production incidents I’ve seen. This one-liner is worth putting into a monitoring script or cron job. The grep variant is useful when you only want the expiry date without the noise of the full cert details.
Watch Explanation on YouTube
how to extract website certificate expiry date using openssl command
Link URL : https://youtu.be/VQ52F2pOHjs
- using openssl dates flag
1
$ echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -dates
- using grep
1
echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep -A 1 "Not After :"
This post is licensed under
CC BY 4.0
by the author.