In this example we see how to fix cURL error 60 SSL certificate problem. cURL error 60: SSL certificate problem: unable to get local issuer certificate error occurs when we try to call the API with the secure https:// protocol in the request URL.
cURL error 60 SSL certificate problem on localhost in xampp and localhost wampp server. Also you can face curl 60 ssl certificate problem on windows, In laravel guzzle ssl certificate issue.
Your API call try to run request URL with only http:// protocol. You can’t see the error anymore because secure API calls require an SSL certificate or https:// protocol.
This error occurs because the API call makes a secure connection request using the self-signed certificate. When it does not find a valid certificate, it throws an error.
2. Save it as a “cacert.pem”.
3. Paste cacert.pem in WAMP user to
C:\wamp64\bin\php\cacert.pem, for XAMPP user to
php.ini and find this line
5. Now, we need to add the path of the certificate to “curl.cainfo” and remove semicolon(;) as follow.
curl.cainfo = "C:\wamp64\bin\php\cacert.pem"
6. The most important step is to save and close your php.ini. Restart your WAMP or XAMPP server and try your request again. If you do not set the right path, then you will experience a cURL 77 error.
You might also like :
We've detected that you are using AdBlock or some other adblocking software which is preventing the page from fully loading.
We need money to operate the site, and almost all of it comes from our online advertising.
Please add websolutionstuff to your ad blocking whitelist or disable your adblocking software.