ich versuche mich seit ein paar tagen mit einem script, welches das verfallsdatum von ssl zertifikaten auslesen soll.
bisher dachte ich, man könnte es per Funktion stream_get_meta_data() auslesen, allerdings beinhaltet dies keinerlei SSL daten.
codebeispiel:
$url = 'https://domain.tld';
$fp = fopen($url, 'r');
foreach($meta_data['wrapper_data'] as $metaContentZeile)
{
echo "<br>".$metaContentZeile;
}
ausgabebeispiel:
HTTP/1.1 200 OK
Date: Tue, 01 Apr 2008 15:31:45 GMT
Server: Apache/1.3.27 (Linux/SuSE) mod_ssl/2.8.12 OpenSSL/0.9.6i
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
Dies ist allerdings nicht das SSL Datum. hat jemand eine idee?