If you want to check the SSL certificate validation (expiry time, hostname match, self signed etc) using curl, you can do it by running

curl -cacert URL_ADDRESS

Example : If you want to check the SSL certificate of GoDaddy

curl -cacert https://www.godaddy.com

HOW TO : Check SSL certificate validity using curl

If you want to check the SSL certificate validation (expiry time, hostname match, self signed etc) using curl, you can do it by running [code]curl -cacert...