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.
Related
I implemented the Xero-API using this library, having implemented it, it worked fine on localhost, then i uploaded to my server then i get this error
Curl error: Problem with the SSL CA cert (path? access rights?)
Assuming that the certs do exist in the path and php has the ability to access the server. Try restart apache first, it might be something simple, if not try regenerate the cert, it might have gotten corrupt somehow.
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.
When I enable CURLOPT_SSL_VERIFYPEER i get this error from curl:
SSL certificate problem: unable to get local issuer certificate.
I read that i should include something to the php.ini file but i do not have access to that file because it's not a self hosted site. I alredy purchased ssl certification for my site and the host said that they will set everything.
Where could be the problem at my site or at the host?
You might have to talk about this issue with the technical support from your host. The installation/configuration of the ssl certificate might not be completed yet.
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.
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