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 :"