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.
Related
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 using magento community edition 2.2 on wamp on windows server 2016. Whenever I am trying to Sign in to sync your Magento Marketplace purchases through System > Web Setup Wizard > System Config using the private and public keys taken from magento market place, I am getting the error:
"SSL certificate problem: unable to get local issuer certificate"
I tried solutions provided in some of the other threads in this forum to download cacert.pem and do the following settings in the php.ini
curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem" (this is where I put the cacert.pem file). It did not work!!
Other threads advice to put the self certified certificate in a convenient directory and specify the name with path for "curl.cainfo" and "openssl.cafile".
The issue is that I am not using self certified certificate. I have bought a commercial certificate, where they have given two files a certificate and a certificate chain file. Along with the key file I used to create the request, I have successfully installed configured apache to get https for the website.
The question is, how to get rid of the above error ""SSL certificate problem: unable to get local issuer certificate". The answers in the threads are all for the self signed certificates, where I am having a commercially purchased certificate (with multiple files)
I am using php 7.1.9 on wamp 3.1.0 magento CE 2.2.0
Please Advice....
You must have received the root and the intermediate certificate along with the main certificate.
The error states that its unable to verify the certificate uptil the root certificate. Rename the CACert.pem file with .crt extension . Also change the extension of the public key to .crt. Now, verify Whether the ISSUES BY of public key is the ISSUED TO of cartcert.pem is same. if its not the same then the intermediate in the cacert.pem is incorrect.
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