cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
tried multiple solution but not solving
this all solutions i tried :
https://laracasts.com/discuss/channels/laravel/how-to-solve-curl-error-60-ssl-certificate-in-laravel-5-while-facebook-authentication
Laravel Socialite testing on localhost, SSL certificate issue?
public function getSocialAuth()
{
return Socialite::driver('github')->redirect();
}
Simple solution. Tested.
You can open your php.ini file.
Change this
;openssl.cafile=
to
openssl.cafile=C:/Windows/curl-ca-bundle.crt
(notice the semi colon is removed?)
Search your system for a file named curl-ca-bundle.crt and put it in C:/Windows
I expect it works on Mac and other sytems as well. Just put in the right path.
That's it.
Related
We're using the Docusign RestAPI (PHP SDK) from our app and it works great. Authentication mode is JWT. I want to use all the code I've written on a different subdomain, but I get this error:
API call to https://account.docusign.com/oauth/token failed: SSL certificate problem: unable to get local issuer certificate
Both domains, my-domain.com and new.my-domain.com have SSL certs installed. What do I do now? What have I missed?
The DocuSign public certificates page lists all certificates.
Scroll down and look for this:
Install the certificate on your server where you are running the code from.
Do you have the standard set of trusted root certs installed in PHP?
This article may help you.
SOLVED: the new subdomain was operating on a different version of PHP. I added the cert paths to that php.ini file and it works as it should now.
I'm getting mad with this problem.
I have two sites on Laravel that are calling each other (login with OAUTH2, passport/socialite) on https. Both are installed locally on my dev server, on MAMP, certificates autosigned with MAMP.
cURL error 60: SSL certificate problem: unable to get local issuer certificate
Everywhere I found this solution: put somewhere the file cacert.pem and write the path in php.ini. I did with
curl.cainfo="/Applications/MAMP/Library/OpenSSL/certs/cacert.pem"
Done, Apache relaunched, the setting appears correctly in phpinfo() on both sites.
Still, the errors persists.
Somebody can help?
After some research seems that the only solution is not to use https in developing/staging.
I am integrating Woo-commerce API's in my Laravel 5.6 site using Woo-commerce official rest sdk. I made a link using authentication endpoint URL.Which is mention at here .
When user clicks the link it takes the user to Woo-commerce authentication page, where user login and Approve the request.
After approving the request it should take me to return url which i mention in the link.
Instead it shows me the following error.
Error: cURL error 60: SSL certificate problem: unable to get local issuer certificate.
I have tried this. But it's also not working.
I put the cacert.pem in '/etc/ssl/certs' directory,
also make the entry in php.ini like
curl.cainfo = "/etc/ssl/certs/cacert.pem". But it's not working.
After investigation I found the solution.
It does not work without ssl certificate.
I have install certificate using this link and it works.
I am getting below issue
SSL certificate problem: unable to get local issuer certificate
I already set in my php.ini & also check this file is exits in mentioned path.
curl.cainfo = "D:\xampp\php\extras\ssl\cacert.pem"
Still i am getting same issue.
Can you guys suggest me what is the issue or something missing ?
Thanks in Advance!
Viku V.
I'm getting SSL certificate problems: unable to get local issuer certificate error when connecting to Magento marketplace using WAMP. Please tell me how to fix it.
thanks it fixed
I downloaded the .pem file https://curl.haxx.se/ca/cacert.pem and then input this line in php.ini:
{curl.cainfo=/path/to/downloaded/cacert.pem}
In /setup/src/Magento/Setup/Model/MarketplaceManager.php
change this: protected $urlPrefix = 'https://'; into protected $urlPrefix = 'http://';
This is really a modification of a core file, so avoid this method if you can solve the problem with a certificate.
Update: In 2.1.x the file to edit is /setup/src/Magento/Setup/Model/PackagesAuth.php
It seems that there's no certification information available on your windows system. This answer might solve the issue you experienced:
curl: (60) SSL certificate : unable to get local issuer certificate