homepage Welcome to WebmasterWorld Guest from 54.237.71.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Ecommerce
Forum Library, Charter, Moderators: buckworks

Ecommerce Forum

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




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

Hi,
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?
Thanks
Thanks

 

lorax




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

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.

helenp




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

Thanks,
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.

helenp




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

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,
dirname(__FILE__)."/cert/api_cert_chain.crt");

Of course that file does not extist...

helenp




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

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

Download:

https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_SOAP_SDK.zip

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

.../app/vendors/PEAR/PayPal/cert/api_cert_chain.crt"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Ecommerce
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved