Skip to content

Instantly share code, notes, and snippets.

@snez

snez/tls.php Secret

Forked from anonymous/tls.php
Created November 15, 2017 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snez/f88284159766a8f64cc3e99d435f93c9 to your computer and use it in GitHub Desktop.
Save snez/f88284159766a8f64cc3e99d435f93c9 to your computer and use it in GitHub Desktop.
<?php
$c = curl_init();
curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check");
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
$r = json_decode(curl_exec($c));
curl_close($c);
echo $r->tls_version . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment