curl verify ssl code example
Example 1: php curl ssl verify
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
Example 2: validate ssl certificate on website using curl
curl --cert-status -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }'