How do I get certificate (and the certificate chain) given some URL?
I noticed that I get see this info when runnning curl_exec after:
curl_setopt($ch, CURLOPT_CERTINFO, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
but the output is very non-structured, I am looking for something a bit more modeled (like an array, etc) that I can parse in code...