Well yes, that’s always a risk when using third party code. It wouldn’t hurt to go through the code and check it isn’t doing anything harmful.
That’s not a malfunction of MAMP, that is cURL saying that whatever you want to connect to doesn’t have an SSL certificate that was signed by a trusted SSL signer. Best option here is to contact them and get them to install a proper certificates, especially now with free certs from parties like Let’s Encrypt.
Alternative you can tell cURL to ignore it, but I’d only use as a last resort when all else has failed.
The URL you connect to. Where you’re connecting from is irrelevant.
You can pass ['verify' => false] as the options. Again, do this only in development, do not do this is production where there is a valid certificate available!
Okay thanks but if not relevant why does it fail on MAMP but works on a live host whereas is still url that am connecting to.
I use verify false on MAMP and see if it works,
But please where exactly should place this ['verify' => false] because i dont know which variable they are using as the $ch ,
So are you using curl_ methods or Requests? You can’t mix and match.
For Requests it would be like this Requests::get('some/url', [], ['verify' => false]);
In that case you probably don’t have a new enough CA bundle installed in your system. I’d ignore it for now. Let’s get it work first, then we can see if we can make it better.
I got it working also on xampp from where you pointed me to, i discovered i can turn off the verify ssl that is part of the options to false, is true by default.
But however thats not how i solved it, i looked closely from that session and saw that they bundled old caecert.pem in the lib, so i downloaded a fresh one and replaced it, without turning off the verify ssl.
Which goes to confirm your last statement that where am making the calls from is irrelevant.
It seems this project is something we will be talking about for a while. It would be beneficial for you and us if you could put your project on Github so we can review it as a whole. It will save a lot of time and trouble in the long run. If it is some secret code you dont want the world to see you can make it a private repo and just grant access as you see fit.
I have never said no to such a beautiful offer, having better and experienced hands work with me on a project.
But i had to unwillingly say no to this tempting offer because of privacy, and my clients concept protection.
He might think i sold out his idea.
I will take this offer when the concepts and ideas are all mine without a third party, am too young to go to jail for bridge of contract, (LOL)