PHP cURL Error Code 60 : SSL Certificate Problem [Solved]

Last modified on August 24, 2019 24 sec read

Let’s try to know what does it means. cURL error code 60 defines CURLE_PEER_FAILED_VERIFICATION. According to,

The remote server’s SSL certificate or SSH md5 fingerprint was deemed not OK. This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51.

Solution of The Error

Let’s follow these simple steps:

  1. Download this bundle of root certificates:
  2. Put in any location of your server.
  3. Open php.ini and add this line: curl.cainfo = "[the_location]\cacert.pem"
  4. Restart your webserver.
That’s it. 🙂

Most Related:

Monthly Newsletter

One email a month, packed with the latest tutorials, delivered straight to your inbox.
We'll never send any spam or promotional emails.

Hey, I'm Md Obydullah. I build open-source projects and write article on Laravel, Linux server, modern JavaScript and more on web development.