Issue: Seen while using Guzzle while using WAMP.


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 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/

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.