I'm trying to find the expiration date of an SSL Certificate using the following command:
openssl s_client -connect ${CERT}:443 </dev/null 2>&1 | openssl x509 -text | grep "Not After"
This outputs a result to the terminal in the format:
Not After : Apr 14 10:06:09 2018 GMT
How do I remove the "Not After : " part of the result and just be shown:
Apr 14 10:06:09 2018 GMT
Any help appreciated!