Issue: Seen while using Guzzle while using WAMP.
Solution
You will first need to download the certificate from here cacert.pem
Once you have the file, copy it into C:\wamp64\bin\php\php7.4.0\extras\ssl (In my case its PHP version 7.4.0 but choose the version you are using).
Next, you need to make sure that file mod_ssl.so exists inside C:\wamp64\bin\apache\apache2.4.41\modules
Enable module mod_ssl in C:\wamp64\bin\apache\apache2.4.41\conf\httpd.conf like so LoadModule ssl_module modules/mod_ssl.so
Next we need to enable openssl extension like so extension=openssl. To enable this extension, you need to change php.ini files located in these places
You can find first php.ini file to edit from wamp control panel.

The other php.ini to edit is at C:\wamp64\bin\php\php7.4.0 (browse to your php version)
Finally you will need to provide location of cacert.pem you downloaded earlier. Add the location of this file on both php.ini file. Find line curl.cainfo = and replace with location of cert like so,
curl.cainfo = “C:\wamp64\bin\php\php7.4.0\extras\ssl\cacert.pem” (Make sure location is correct)
Finally restart WAMP and things should work now.
Thank you very much! This was helpful. I couldn’t find out why I could not access any https URLs.
Though I needed only to download the cacert.pem file and point to it in php.ini
openssl.cafile=”d:\wamp64\bin\php\php8.1.8\extras\ssl\cacert.pem”
I’m using WAMP 3.2.9 + Apache 2.4.48 + PHP 8.1.8