mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Enable local SSL certificate verification (#356)
This fixes points being not delivered on same systems. Also set the CURLOPT_SSLVERSION as stated here https://www.php.net/manual/de/function.curl-setopt.php#118536
This commit is contained in:
parent
f5bbc78101
commit
c0fe9e5d85
3401
engine/cert/cacert.pem
Normal file
3401
engine/cert/cacert.pem
Normal file
File diff suppressed because it is too large
Load Diff
6
ipn.php
6
ipn.php
@ -25,8 +25,10 @@
|
||||
$IPN['cmd'] = '_notify-validate';
|
||||
$PaypalHost = (empty($IPN['test_ipn']) ? 'www' : 'www.sandbox').'.paypal.com';
|
||||
$cURL = curl_init();
|
||||
//curl_setopt($cURL, CURLOPT_SSL_VERIFYPEER, false);
|
||||
//curl_setopt($cURL, CURLOPT_SSL_VERIFYHOST, false);
|
||||
curl_setopt($cURL, CURLOPT_SSL_VERIFYPEER, 1);
|
||||
curl_setopt($cURL, CURLOPT_SSL_VERIFYHOST, 2);
|
||||
curl_setopt($cURL, CURLOPT_SSLVERSION, 6);
|
||||
curl_setopt($cURL, CURLOPT_CAINFO, __DIR__ . '/engine/cert/cacert.pem');
|
||||
curl_setopt($cURL, CURLOPT_URL, "https://{$PaypalHost}/cgi-bin/webscr");
|
||||
curl_setopt($cURL, CURLOPT_ENCODING, 'gzip');
|
||||
curl_setopt($cURL, CURLOPT_BINARYTRANSFER, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user