This error occurs due to the curl
library in your XAMPP setup cannot find the certificate authority (CA) file (curl-ca-bundle.crt
). The certificate authority (CA) file is required for establishing secure connections via cURL
.
Following are the steps to resolve:
Step 1: Verify the Path
Make sure the curl-ca-bundle.crt
file available in the specified location (\xampp\apache\bin\
). If it’s not available, you can:
- Download a CA bundle from curl.haxx.se.
- Put and Save the file as
curl-ca-bundle.crt
in the\xampp\apache\bin\
directory.
Step 2: Update the PHP Configuration
- Open the exiting
php.ini
file (located in\xampp\php\php.ini
). - Find the
curl.cainfo
directive. - Update the directive to point to the
curl-ca-bundle.crt
file, e.g.:
curl.cainfo = "C:\xampp\apache\bin\curl-ca-bundle.crt"
Similarly, find the openssl.cafile
directive and update it:
openssl.cafile = "C:\xampp\apache\bin\curl-ca-bundle.crt"
Step 3: Restart Apache
Restart the Apache server from the XAMPP Control Panel.
Ravindra is a passionate full stack developer and dedicated blogger with a flair for crafting user-friendly web applications and insightful articles. With expertise spanning front-end and back-end technologies, Ravindra brings ideas to life through innovative coding solutions.