Skip to content

Instantly share code, notes, and snippets.

View imroca's full-sized avatar
👾
En taro Adun Executor

Ignacio Rojas imroca

👾
En taro Adun Executor
View GitHub Profile
@imroca
imroca / tls_1_2.php
Created May 18, 2017 14:27
Check for TLS 1..2
<?php
$curl_info = curl_version();
echo "CURL Info\n";
print_r($curl_info);
$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);