Skip to content

Instantly share code, notes, and snippets.

/tls.php Secret

Created August 13, 2016 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/506e7818d1a7d7f4d687c5436cbd8ac8 to your computer and use it in GitHub Desktop.
Save anonymous/506e7818d1a7d7f4d687c5436cbd8ac8 to your computer and use it in GitHub Desktop.
$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