Saturday, April 18, 2020

SSL Certificate - Get expiration date from shell with openssl

Very simple, just run the following command:

[root@ip-172-31-39-55 monitoring]# echo | openssl s_client -servername www.easybiny.com -connect www.easybiny.com:443 2>/dev/null | openssl x509 -noout -dates
 

notBefore=Mar 28 13:43:20 2020 GMT
notAfter=Jun 26 13:43:20 2020 GMT

No comments:

Post a Comment