Skip to content

Commit c389004

Browse files
author
Elad Alfassa
committed
Verify TLS connection
Using TLS (SSL) without verifying the certificate on the remote end is insecure just like using plain HTTP.
1 parent cad894e commit c389004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MaxCDN.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function execute($selected_call, $method_type, $params) {
5252

5353
//return the transfer as a string
5454
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
55-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , FALSE);
55+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , TRUE);
5656

5757
// set curl timeout
5858
curl_setopt($ch, CURLOPT_TIMEOUT, 60);

0 commit comments

Comments
 (0)