Curl and the output: can't find the serial number of the certificate.
<?php
$curl = curl_init('https://www.comodo.com/');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_NOBODY, true);
curl_setopt($curl, CURLOPT_CERTINFO, true);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_exec($curl);
$info = curl_getinfo($curl);
$certs = $info["certinfo"];
?> <pre><?php echo var_dump($certs) ?></pre>
where is the certificate serial number hiding? can't find it in this example answer should be: 26:32:AC:57:23:86:91:BB:D5:88:D3:D8:E9:DA:0B:4E
note: other variables of the certificate are retrieved, except doesn't look like it includes certificate serial number.