Sometimes, when we make a curl call to third party services, we get an error curl: (60) SSL certificate : unable to get local issuer certificate. Show This error occurs because the curl verifies and makes a secure connection request using self-signed certificate. When it does not find the valid certificate, it throws an error. To fix this error, follow the steps below:
1、
Enter https://curl.haxx.se/docs/caextract.html Choose any one and download it locally curl.
Cainfo = “file address” Read More:Home » cURL error 60: SSL certificate problem: unable to get local issuer certificate Last updated on June 17, 2022 by Often, 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. In this article, we will discuss why does this error occur? how to resolve: unable to get local issuer certificate error occurs? Let’s jump into it. Just go to your API call code and try to run the request URL with only http:// protocol. You can’t see the error anymore because secure API
calls require an SSL certificate. 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. It has a very very simple solution. We just need to download the certificate and set the path. Are you ready? Then let’s set up an SSL certificate step by step as below: How To Resolve: unable to get local issuer certificate error?
curl.cainfo = "C:\wamp64\bin\php\cacert.pem"
Hurray! we have completed all steps to solve unable to get local issuer certificate error. Additionally, read our guide:
That’s it from our end. We hope this article helped you to resolve cURL error 60: SSL certificate problem: unable to get local issuer certificate error. Please let us know in the comments if everything worked as expected, your issues, or any questions. If you think this article saved your time & money, please do comment, share, like & subscribe. Thank you for reading this post. 🙂 Keep Smiling! Happy Coding! How do you fix curl Error 60?How to solve this problem: download and extract cacert. pem following the instructions at https://curl.se/docs/caextract.html. save it on your filesystem somewhere (for example, XAMPP users might use C:\xampp\php\extras\ssl\cacert.
How do I fix curl 60 SSL certificate problem certificate has expired?The only solution to this problem is to get your host to update the root certificate on your server. So, you need to contact your server host and ask them to insert a new cacert. pem file into their servers, and configure it within their php.
How do I fix unable to get local issuer certificate?When ssl certificate problem unable to get local issuer certificate error is caused by a self-signed certificate, the fix is to add the certificate to the trusted certificate store. Open the file ca-bundle. crt located in the directory above, then copy and paste the Git SSL certificate to the end of the file.
What is a curl Error 60?Error “curl: (60) SSL certificate problem: unable to get local issuer certificate” can be seen when the SSL certificate on the server is not verified or properly configured.
|