Problem with accessing https URLs - solution
Posted by: terespl (193.200.133.---)
Date: July 31, 2022 02:28PM

Hi,

I've had big problem accessing https URLs from PHP curl_exec function. There were no errors or anything but the reply was always false value after calling function curl_exec.

Finally I've found solution on 2 pages:
[sumanbhattarai.com.np]
[south634.com]

First: you need to download cert.pem file from this page: [curl.se]

Save it to d:\wamp64\bin\php\php8.1.8\extras\ssl\ as cacert.pem

And edit php.ini file
openssl.cafile="d:\wamp64\bin\php\php8.1.8\extras\ssl\cacert.pem"

Remember to change the location where you have WAMP installed.

Now I can access https URLs.


Maybe this can be changed in WAMP, so that after installation everything works.


Regards,
Tomek

Re: Problem with accessing https URLs - solution
Posted by: Otomatic (Moderator)
Date: July 31, 2022 05:04PM

Hi,

See item 7 of Wampserver 3 - Some explanations

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Re: Problem with accessing https URLs - solution
Posted by: terespl (193.200.133.---)
Date: August 04, 2022 09:26PM

Hi,

I've read your way to fix it. I think it's a lot more complicated then the one I mentioned. Besides in XAMP it works out of the box. Maybe this can be also fixed in WAMP?

Sorry, only registered users may post in this forum.