Git Product home page Git Product logo

Comments (9)

pedrogclp avatar pedrogclp commented on June 3, 2024 3

To configure WAMP:
1.- Download the CA Certificate from this link: https://curl.haxx.se/ca/cacert.pem
2.- Open php.ini
3.- Look for curl.cainfo and paste the absolute path where you have download the Certificate.
/* Example: curl.cainfo = "C:\wamp\htdocs\cert\cacert.pem" */
4.- Restart WAMP.
5.- It works!

from fonoapi.

pedrogclp avatar pedrogclp commented on June 3, 2024 1

Thanks you, I'll test ASAP

from fonoapi.

shakee93 avatar shakee93 commented on June 3, 2024 1

Great. its a common server config issue. but disabling verifier makes all your requests insecure that is not recommended.

There is another approach using .pem file
http://stackoverflow.com/questions/28858351/php-ssl-certificate-error-unable-to-get-local-issuer-certificate

you could give it a try.

from fonoapi.

pedrogclp avatar pedrogclp commented on June 3, 2024 1

Thanks you!

from fonoapi.

shakee93 avatar shakee93 commented on June 3, 2024

Did you try with the demo files ? it seems to be working. can you attach the code please

from fonoapi.

pedrogclp avatar pedrogclp commented on June 3, 2024

Yes I did, I don't know why its returning false, I just unzip the demo, put it the generated key and tried it. Maybe I'm doing something wrong.. I tried to put other random url to know if cURL was working, and it worked.

from fonoapi.

shakee93 avatar shakee93 commented on June 3, 2024

I just made a commit. i have added debugging for curl.

you can now use

fonoApi::init($apiKey) -- initiate
fonoApi::debug($apiKey) -- debug

check the demo file and let me know what was the issue. thanks

from fonoapi.

pedrogclp avatar pedrogclp commented on June 3, 2024

This is from debugger:
"ERROR : Curl Failed | innerException : SSL certificate problem: unable to get local issuer certificate"

from fonoapi.

pedrogclp avatar pedrogclp commented on June 3, 2024

I solved: http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

And it works

from fonoapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.