Welcome to WebmasterWorld Guest from

Forum Moderators: buckworks

Message Too Old, No Replies

Paypal ipn test: error [77] error setting certificate verify locations



10:15 pm on Nov 30, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I am trying to do all recomendations and searched in google, so finally I bought my ssl certificate, I asked my host to install it wich they did.

Regarding paypal, I opened a sandbox account, I did a seller and a buyer account, I followed the instructions from a tutorial (no link as not permitted) and I am testing the ipn at this moment:

When I go to test tool and test the ipn I should get an email or an error in my errorlog.
I gets an error saying this:
cURL error: [77] error setting certificate verify locations:
CAfile: /home/mysite/public_html/cert/api_cert_chain.crt
This file does not exist....
any ideas?


12:15 am on Dec 1, 2012 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

That looks like either the CRT file is in the wrong location or the server has been told to look for it in the wrong location.


9:32 am on Dec 1, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

The question is that that file does not extist.
I downloaded the files from Godaddy and sent them to the host, the files I downloaded and sent was mydomain.com.crt and gd_bundle.crt

If I enter cpanel-file manager, in home (outside public_html and www) I have a foler called ssl, inside that folder there are 2 folders.
One called certs with 3 files inside: mydomain.com.cabundle, mydomain.com.crt and mydomain.com.csr.
The other folder is called private and have 2 files, one called mydomain.com.key and one called mydomain.com.key.old.4547638364

I reported this bug to the host and this is the answer I got from them:
As for your other issue with the ipn this is something you're going to need to investigate. Our systems have nothing to do with these IPN errors. You're missing files it's looking for I assume certificate files specific to the IPN nothing to do with your certificate.


10:28 am on Dec 1, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Just been reading the ipn files I got, I see in ipnlistener.php this, and here is the link to the file, however in the tutorial I read it said nothing about it:
curl_setopt($ch, CURLOPT_CAINFO,

Of course that file does not extist...


10:54 am on Dec 1, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

It works now, I have not read anywhere I need a certificate from paypal....
Not sure Im doing right, I found this iformation from 2009 but it talks about verisign and I have godaddy, anyway I downloaded the api_cert_chain.crt and uploaded it to where my ipn.php and ipnlistener are. And at least the test works, I got an ok email.
I supposte this file must be somewhere in paypals guide, but I have not understood, its so huge to understand.
As I dont use any software or plugin, I do all coding myself, but I ever done something like this.

"Last week (on Sept 22-24th) PayPal renewed their SSL certificates with VeriSign. The result? Many broken websites and a lot of developers scratching their heads. Luckily, the fix is pretty easy. You just need to update the .crt file contained in your application’s PayPal plugin.

The instructions here assume you’re getting the following error, and that you’re running PHP. If you’re not running the PHP version of the API then search their downloads for the right SDK – the process is the same.

SOAP Error:

curl_exec error 60 ssl certificate problem verify that the ca cert is ok



Copy the api_cert_chain.crt file from that .zip into the following directory on your site:


Featured Threads

Hot Threads This Week

Hot Threads This Month