From c389004f457b7f265582524eac213a1f94555177 Mon Sep 17 00:00:00 2001 From: Elad Alfassa Date: Sun, 14 Jun 2015 17:54:11 +0300 Subject: [PATCH] Verify TLS connection Using TLS (SSL) without verifying the certificate on the remote end is insecure just like using plain HTTP. --- src/MaxCDN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaxCDN.php b/src/MaxCDN.php index 73a88c4..f6121c2 100644 --- a/src/MaxCDN.php +++ b/src/MaxCDN.php @@ -52,7 +52,7 @@ private function execute($selected_call, $method_type, $params) { //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , FALSE); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , TRUE); // set curl timeout curl_setopt($ch, CURLOPT_TIMEOUT, 60);