Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anonymouse703's avatar

cURL error 77: error setting certificate verify locations: CAfile: �C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem� CApath: none

I got this error: cURL error 77: error setting certificate verify locations: CAfile: �C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem� CApath: none

What I've done so far:

  1. downloaded: caert.pem ()
  2. paste it in C:\wamp64\bin\php\php7.1.9\extras\ssl
  3. configured this in php.ini curl.cainfo = "C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem" openssl.cafile = "C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem"
  4. restart wamp

But still got the same error.

0 likes
4 replies
anonymouse703's avatar
anonymouse703
OP
Best Answer
Level 6

SOLVED:

Note: If using Wamp server here is the proper implementation.

  1. Download: caert.pem ()
  2. Paste it in C:\wamp64\bin\php\php7.1.9\extras\ssl
  3. Configure this in php.ini(In the right bottom click wamp icon got to php.ini) curl.cainfo = "C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem"
  4. Configure this in php.ini Manaully(C:\wamp64\bin\php\php7.1.9\php.ini) curl.cainfo = "C:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem"
  5. restart wamp
4 likes

Please or to participate in this conversation.