Jump to content

Check TLS 1.2 readyness for Paypal


Recommended Posts

Bonjour,

 

You probably know it, as tomorrow (June 17th, 2016), PayPal is switching to TLS 1.2

 

You already have recieved notice and with reason wondering if your hosting/server is ready for such. Your weak understanding in the area let you unable to clearly check the readiness.

 

Fear no more. Here is a little code that will answer ths exact question.

 

<?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://tlstest.paypal.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
$result = curl_exec($ch);
echo 'result = '.$result.'<br>'.PHP_EOL;
echo 'errno = '.curl_errno($ch).'<br>'.PHP_EOL;
echo 'error = '.curl_error($ch).'<br>'.PHP_EOL;
curl_close($ch);

The code is checking the hosting readiness, not that some module code not to be behaving properly.

 

 

-------------

Bonjour,

 

Vous le savez sans doute Paypal dès demain (17 Juin 2016) bascule en TLS 1.2

 

Vous avez reçu sûrement des messages et a raison vous vous demandez si votre hébergement/serveur est conforme, mais avez vos faible connaissances vous ne savez comment contrôler que vous êtes prêt.

 

Ne paniquez plus voici un petit code qui va vous dire exactement si tout va bien.

 

<?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://tlstest.paypal.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
$result = curl_exec($ch);
echo 'result = '.$result.'<br>'.PHP_EOL;
echo 'errno = '.curl_errno($ch).'<br>'.PHP_EOL;
echo 'error = '.curl_error($ch).'<br>'.PHP_EOL;
curl_close($ch);

Ce code vérifie que votre hébergement est prêt, pas si le code d'un module n'est pas boiteux

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...