-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Unable to run composer update due to SSL23_GET_SERVER_HELLO:unknown protocol error #4212
Comments
As a workaround I was able to add in my
|
Now, composer just runs fine again even with SSL connection on the machine in question. Totally weird behavior. If somebody could please enlighten me what plausible causes might be, it would be highly appreciated. |
|
@slbmeh Please how do I correct the issue... |
I've got exactly the same issue. Unable to update/install from behind the corp proxy
|
As an Update this has been sorted by removing https_proxy variables (?!) Currently I've got only http_proxy and HTTP_PROXY system variables set through "export" in my .bashrc (Windows 7) |
The command |
Confirming that unsetting https_proxy permits |
I manage to solve by download a cacert.pem file. Here is the link that discuss about the error |
Thanks @newairhost you save me a lot of trouble... unsetting https_proxy enables composer to work |
I also have this problem when https_proxy is set. |
Closing as I'm not sure what we can do.. seems to be broken proxies. |
@hazcod Solution worked for me, thanks. |
Check that your https_proxy is not equal to https://yourproxy.com or something like this. |
where to find https_proxy? |
Run in console echo $https_proxy |
Hi @maiksuaco , I am using windows here. Do you mean to run it on cmd? |
Upss @AnnaFu windows i dont know but anyany try in verbose mode to see more description of your error...i dont if it helps but try it. |
This is not a proxy issue. Importing root certificates from an unencrypted source / without transport security like http://curl.haxx.se/ca/cacert.pem is really not a clever idea. Either way, we shouldn't alter the composer.phar locally. A fix should be committed instead. |
While I generally agree with not using an unencrypted source, in the case of haxx.se, HSTS prevents any user from ever communicating with that name over an unencrypted channel. e.g.:
you'll see if you ever try to request anything from haxx.se over http, it will do a 307 redirect to https, so even using something like wifi pineapple wouldn't allow http MITM hijack |
@saatchimatt good point as of today, but some time ago there were no HSTS headers and redirects on that domain. Just found this on their site:
|
excelent, unset https_proxy worked for me.. |
Perfect, |
Due to Permission issue, i tried with SUDO it works for me sudo php composer-setup.php |
This worked for me:
|
Simply add this configuration to your composer.json file. "config": { |
Downloading (failed) Failed to download friendsofphp/php-cs-fixer from dist: The "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ceaff36bee1ed3f1bbbedca36d2528c0826c336d" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: doesnt work on Keenetic router and on QNAP NAS thru Entware. |
I'm on a server that require proxy to connect to the outside world. And still this worked:
The only way I can see this makes sense is if it tricks composer into doing regular http for all requests. http_proxy is set to our company proxy. |
|
As of today I have troubles updating my dependencies with version
01a9c3a0ce21ce4a4ff9d7328eaeb871e7c2ca1b
.I have reinstalled composer mutliple times and tried setting the:
When running diagnose I get:
What I find pretty peculiar is that I can access the errorneous requests via:
So I am really confused what problem composer is having here.
The text was updated successfully, but these errors were encountered: