Docs Error Library Connection Errors cURL Error 60: SSL Certificate Problem

cURL Error 60: SSL Certificate Problem

What Is Causing This Error?

cURL error 60: SSL certificate problem occurs when making an API call over the secure HTTPS protocol and the cURL function cannot verify the server’s SSL certificate. This happens if the server is using a self-signed certificate or if the cURL function does not have access to a proper CA certificate bundle to verify against trusted certificate authorities.

Resolving the Error – Solution

To resolve cURL error 60 on a local development environment like XAMPP or WAMP, or even on a Windows server:

  1. Download the latest ‘cacert.pem’ file from the official cURL website or directly from
  2. Save this file to a directory on your server. For WAMP, it could be “C:\wamp64\bin\php\cacert.pem”, and for XAMPP, “C:\xampp\php\extras\ssl\cacert.pem”.
  3. Edit your php.ini file, which is the configuration file for PHP, to include the path to the “cacert.pem” file. Find the line that “contains ;curl.cainfo”, remove the semicolon to uncomment it, and set it to the path of your “cacert.pem” file, such as:
curl.cainfo = "C:\wamp64\bin\php\cacert.pem"

4. Save changes to php.ini and restart your WAMP, XAMPP, or other web server software for the changes to take effect.

That’s it! Now you know how to fix the ‘cURL error 60:’ error.

If you’d like to learn how to troubleshoot other common errors, check out the following tutorials: