PayPal-IPN: unable to get local issuer certificate

Ich bin mit curl, um zu überprüfen, die PayPal-IPN-aber es wirft Fehler: SSL certificate problem: unable to get local issuer certificate. Der gleiche code funktioniert auf dem development-server und wenn ich verschoben, der client-server-es funktioniert nicht.

Muss ich Einkaufen ssl-Zertifizierung, um die Zahlung per PayPal express-Kaufabwicklung oder eine Veränderung in meiner coding-Teil oder irgendeine Einstellung vornehmen müssen, auf dem server.Curl ist aktiviert auf dem server. Jede Hilfe wird geschätzt.

Mein code unten, und seine eine reduzierte test-Seite für dieses:

$req = HAVING PARAMETERS FROM PAYPAL;

$ch = curl_init("https://www.sandbox.paypal.com/cgi-bin/webscr");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: Close'));

curl_exec($ch);
if(curl_errno($ch))
{
    echo 'Curl error: ' . curl_error($ch);
}
InformationsquelleAutor Dijo | 2013-02-19
Schreibe einen Kommentar