Error2 [60]: error setting certificate verify locations: CAfile: /usr/local/share/curl/curl-ca-bundle.crt CApath: none
What causes this error? I'm connecting to paypal and trying to create a gateway.
Error2 [60]: error setting certificate verify locations: CAfile: /usr/local/share/curl/curl-ca-bundle.crt CApath: none
|
|
|
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.paypal.com"); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $returned = curl_exec($ch); curl_close($ch); echo $returned; ?>