SSL Certificate problem


#1

I am new to MWS i got the coding from the MWS developer service. the response i got is “SSL certificate problem: unable to get local issuer certificate”. How to resolve this issue can anyone help me on this


#2

Are you coding your own client? Did you try the provided clients? They handle everything for me… in PHP at least.


#3

i got the sample code from the amazon MWS library only. do u have any sample code??


#4

I believe this has been address before if you search the forum … and recently.


#5

I was stuck on this issue and took me a day to resolve it. Here is what I found:



This link addressed the problem and has a solution for sellers:

https://sellercentral.amazon.com/forums/thread.jspa?messageID=2470351



Basically, you can either:

  1. disable CURLOPT_SSL_VERIFYPEER

    (which I am not sure is the best way to go due to security risk)



    or


  2. download the latest cacert.pem (http://curl.haxx.se/ca/cacert.pem) bundle from the below and add to your php.ini configuration to tell the client to use this new bundle

    curl.cainfo="c:\your-path-to\cacert.pem:



    But I was still getting the error with the new bundle. So I found downloaded AWS SDK for PHP and used the cacert.pem bundled from there.



    That did the trick for me. Hope this might help someone out there.

closed #6