Skip to content

Instantly share code, notes, and snippets.

@jrodriguez-ifuelinteractive
Created June 26, 2018 14:12
Show Gist options
  • Save jrodriguez-ifuelinteractive/5b3892564d4cc5a606c124de43b1690a to your computer and use it in GitHub Desktop.
Save jrodriguez-ifuelinteractive/5b3892564d4cc5a606c124de43b1690a to your computer and use it in GitHub Desktop.
TLS Version Checker
<?php
$ch = curl_init('https://www.howsmyssl.com/a/check');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data);
echo "Connection uses " . $json->tls_version ."\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment