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

Sithira's avatar

cURL error 77 on Windows 10 XAMPP

im trying to upload a text file to my S3 bucket. Every time i try i get this error

RequestException in CurlFactory.php line 187:
cURL error 77: error setting certificate verify locations:
CAfile: ‪pathToMy.pem 
CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

i have my .ini set up like this

curl.cainfo=‪"D:\LocalHost\php\ext\cacert.pem"

And finally in my controller i have something like this

        $S3 = \Storage::disk('s3');
        $S3->put('test.txt', 'First file upload', 'public');

any help would be greatly appreciated :)

0 likes
3 replies
rodiniaweb's avatar

I'm getting the same error in Windows. I'm still trying to figure out how to solve it, but meanwhile I just deactivated the curl module in my php.ini, so Guzzle avoids using it. Now it's working but I know other modules may use curl, so I'll keep investigating about it.

1 like
Sithira's avatar

@rodiniaweb ... i ended up using homestead . However issues is coming from windows itself . Anyway thanks for replying :)

Please or to participate in this conversation.