Check your Certs
Check your SSL certs.
Okay, not just for fun because you're a party animal. I needed to confirm the validity of a cert on a host and I had to look it up. Here's the one-step command:
openssl x509 -text -noout -in <(openssl s_client -connect HOSTNAME:443 <<<"" 2>/dev/null \
| sed -ne '/BEGIN/,/END/p') | grep Not
Not Before: Mar 28 11:16:36 2014 GMT
Not After : Nov 1 19:32:08 2015 GMT
Okay, not just for fun because you're a party animal. I needed to confirm the validity of a cert on a host and I had to look it up. Here's the one-step command:
openssl x509 -text -noout -in <(openssl s_client -connect HOSTNAME:443 <<<"" 2>/dev/null \
| sed -ne '/BEGIN/,/END/p') | grep Not
Not Before: Mar 28 11:16:36 2014 GMT
Not After : Nov 1 19:32:08 2015 GMT
And that's the output. My cert's still good. Yay!
That's it.
<< Home