commit 7034d43b6e7fe50908e0728b2ee8eecb455b9651 Author: Klaus-Uwe Mitterer Date: Fri Mar 4 22:02:10 2016 +0100 Add index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..08df140 --- /dev/null +++ b/index.php @@ -0,0 +1,18 @@ + array("capture_peer_cert" => true))); + $r = stream_socket_client("ssl://" . $s . ":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $g); + $p = stream_context_get_params($r); + $c = openssl_x509_parse($p["options"]["ssl"]["peer_certificate"]); + + $out = $s . " - " . date("Y-m-d H:i:s",$c["validTo_time_t"]); + if ($c["validTo_time_t"] < strtotime("+1 week")) { + print("" . $out . ""); + } else { + print($out); + }; + print("
"); +};