Skip to content

Instantly share code, notes, and snippets.

@msach22
Created July 12, 2018 22: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 msach22/e8d6f28b9cadddb26072410601e82172 to your computer and use it in GitHub Desktop.
Save msach22/e8d6f28b9cadddb26072410601e82172 to your computer and use it in GitHub Desktop.
Run the following block of code to test your environment
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'https://preview.opentok.com/tls-check.json',
));
$curlResponse = curl_exec($curl);
if ($curlResponse === false && curl_errno($curl) === 35) {
echo "Failed to connect to OpenTok, please check your system and upgrade your environment as needed.";
} elseif($curlResponse === false){
echo "Unknown error talking to OpenTok, please try again later.";
} else {
echo "Connection successfully established with your current TLS configuration, no further action required.";
}
curl_close($curl);
?>
@Loic-Hakisa
Copy link

Hello Manik,
The link https://preview.opentok.com/tls-check.json is no more working...
Possible to update this section, as in one month OpenTok disable the use of TLS1.1 ?

Best Regards,
Loïc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment