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

Options: ReplyQuote
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

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.10 32 bit - Apache 2.4.54 - PHP 8.2.0…5.6.40 - MySQL 5.7.39 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.10 64 bit - Apache 2.4.54 - PHP 8.2.0…5.6.40 - MySQL 5.7.39/8.0.30 - MariaDB 10.5.17/10.9.2
PhPMyadmin 5.2.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
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?

Options: ReplyQuote


Sorry, only registered users may post in this forum.