Search
Close this search box.
Search
Close this search box.

How to connect wamp to an external API

If you get the error “SSL certificate problem: unable to get local issuer certificate”.

Step 1. Download the latest cacert.pem file from here.

Step 2. Copy the downloaded cacert.pem file to a directory where WAMP can access it. For example, you might want to save it in a directory like C:\wamp64\bin\php\phpx.x.x\extras\ssl\ (replace x.x.x with your PHP version).

Step 3. Open your php.ini file located in your PHP installation directory (e.g., C:\wamp64\bin\php\phpx.x.x\php.ini).

Step 4. Change these

curl.cainfo = “C:\wamp64\bin\php\phpx.x.x\extras\ssl\cacert.pem”

openssl.cafile=”C:\wamp64\bin\php\phpx.x.x\extras\ssl\cacert.pem”

Step 5. Restart WAMP.