SHARE
TWEET

Untitled

a guest Feb 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $url = "http://rybysiedlce.pl";
  2. $orignal_parse = parse_url($url, PHP_URL_HOST);
  3. $get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE)));
  4. $read = stream_socket_client("ssl://".$orignal_parse.":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get);
  5. $cert = stream_context_get_params($read);
  6. $certinfo = openssl_x509_parse($cert['options']['ssl']['peer_certificate']);
  7. print_r($certinfo);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top