-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed #3346
Comments
I am also receiving this with: Ubuntu Server 14.0.4.1 Straight from the official repos. |
Same issue on following System: Server: ContOS 6.5 php -v
openssl version:
Error message:
|
Same on FreeBSD 9.X and 10.X php -v
openssl
Error
|
Same problem on FreeBSD 10.0 Any ideas ... :( I found only this: |
I solved the issue on FreeBSD 10. On my FreeBSD box the certificate file is in |
Users should not have to change their system configuration in order to get On Mon, Oct 27, 2014 at 11:19 AM, Ivaylo Asenov notifications@github.com
|
That is my default setup (ca_root_nss with etcsymlink) and still not working. |
On FreeBSD with
in /etc/make.conf before installing (or before reinstalling/updating) ports that require openssl then run
and composer works again. |
(y)
|
For us, a reinstall of the ca-cert package fixed the problem! |
I just have posted the similar issue on stackoverflow |
Finally I found the answer :)First: Check certificate file location which will be in default_cert_file key, you will found it in openssl_get_cert_locations() its php openssl function:
Second: Download http://curl.haxx.se/ca/cacert.pem:
Third: Copy certificate PEM file into default_cert_file location:
My php-cli is under XAMPP and default_cert_file maybe point to some place that is different than this. |
@vzool your solution work , Thanks |
@vzool, works for me, too. Thanks a lot! |
In FreeBSD 10.x, the trend is to now sym-link the nss cafile to
to your favorite /usr/local/etc/php/*.ini config until the php56 port catches up. |
@vzool this solution work with me in Ubuntu - Xampp . Thanks |
I'm still having this problem and I'm pulling what's left of my hair out. I've copied cert.pm to the location specified by default_cert_file and I still get the error message. Does anyone else have any kind of update for this. It seems upgrading to PHP 5.6 is a big no no if you use composer. |
Have been having this issue for a few weeks and could not pinpoint what was going on, installing new certificates and making sure NTLM usernames and passwords were all ok, it did not seem to stop the issue as composer diag reported everything were still not working. It turned out that I had to remove the protocol from my https_proxy. Here is what solved my issue on Ubuntu with PHP 5.6.4 behind a corporate proxy. My first issue was I needed to pass user credentials to the proxy, I solved this issue with cntlm. Basically you set your proxy to a local address and then cntlm passes the request onto the corporate proxy with credentials. I had a hard time getting this to work so if anyone needs help with this drop me a line. So now I had internet access with our supplying my username and password each time I made a request :D I was still having issues with SSL event after working through the suggestions listed in this thread, finlay I read somewhere that removing the protocol from your https proxy worked. Using this command: export set https_proxy="127.0.0.1:3128" This command made composer diag work for the terminal session but every time I opened a new session this command needed to be run again. That was all good, I can live with that. All my problems seemed to be solved, I was so happy, well until I tried to install aegir. This used apt-get ran with the sudo command, and I was seeing the SSL error again. NOOOOOO /CRY What was happening (I think) was that the default environmental variables were being used as sudo was opening a new session. It was time to fix this once and for all (well so far) I made a change to the default environment variables. sudo nano /etc/environment I changed the https_proxy to https_proxy="127.0.0.1:3128" I hope this helps someone. Aaron |
hi |
Your solution gave result. Thanks @vzool |
Closing as we now handle SSL quite a lot better. |
@vzool, It work for me too. Thanks very much |
I am using windows 7 - 32 bit. I also updated php.ini file to this after downloading cacert.pem file and restart apache but still I am having issue. Can anyone please help me? I am using PHP Version 5.5.30. extension=php_openssl.dll |
In my case, making sure that the correct cert.pem file exists was not sufficient. You need to also set your time zone in your php.ini to your actual time zone using the |
@psalami I have updated date.timezone in php.ini but still getting same issue... |
Same here. Updating the cert and putting it in |
so i have one resolution. |
only install this |
however,it didn't work in version PHP 7.0.8-0ubuntu0.16.04.2, I really wonder if you have tried this with a php version of 7.0.* or whether you have an another solution , looking forward to reply , I really appreciate it. @vzool |
yes is use php7 but in CENTOS 6 64bit |
On Debian 8.6, using php 5.6, there is a missing file /usr/lib/ssl/cert.pem In order to fix it download CA certs : Then copy to /usr/lib/ssl/cert.pem, and you can use fsockopen with SSL. Maybe an issue with openssl packaging or a missing dependency, but I couldn't find /usr/lib/ss/cert.pem in Deb packages |
Using Ubuntu 16.04 and php7, I could fix it by installing |
Hi, all. I've fixed this issue doing the follow: 1º: Download the certificate:
2º: Export it:
3º: Run composer:
It works for me! :D |
I don't think I saw this mentioned, but a possible trigger of this error could be incorrect permissions for ssl directories. For me it turned out I had the default certs directory as 700 instead of 755 (remember this is certs not private). Doing |
Exporting the COMPOSER_CAFILE variable worked like a charm for me. Until then, I'd been having a frustrating time having tried everything else in this thread. |
@AleksSv Sweet fix, worked fine for me. Thx :) |
FIXED USING A CWD IN POPEN(even if all is called :() It worked exactly like that, replacing cert file BUT |
I had the same issue and tried everything, including messing around with the certificate files. Turned out to be Kapersky Antivirus... Thanks to @marcovtwout on his comment on another thread |
Thanks @mdolnik-eelzee !! |
If you've tried many ways and haven't solved them, try the following: openssl.cafile=/usr/lib/ssl/cert.pem** |
One thing to check also is the date/time of your system: packagist uses letsencrypt certificates that are valid for 3 months and thus renewed every 3 months. If your system is out of sync by a few days, it could happen that the ssl certificate is not valid yet/not valid anymore. Just happened to me with a vagrant vm. |
@mdolnik-eelzee OMAGAD really thanx, Im reinstalled xampp and composer and replaced certificates in configs at least 25 times, before Im found your comment... |
This worked for my vagrant box with centos linux dist. |
You are a life saver. Worked like a charm. |
Wow! @vzool , really, really thanks! Your solution was great for me 😎 |
Worked on XAMPP for Mac too. |
I had the same issue for Ubuntu 16.10 with PHP 7.0 and here is what worked for me:
|
I installed composer using the instruction at: https://getcomposer.org/doc/00-intro.md.
I get the following error:
This is very similar to issue #2798 but that issue seemed to have to do with missing certificates, and I don't know OpenSSL well enough to know which certificates to put where (or even if that is the problem).
I can, however, get "https://packagist.org/packages.json" using cURL, so I'm at a loss.
I'm willing to research and RTFA, if someone could tell me TFA to R. Thanks...
The text was updated successfully, but these errors were encountered: