Just do a manual download then.
Not knowing your OS but if it's Linux chmod the file with sudo chmod +x composer.phar and them move it to usr/local/bin with mv composer.phar /usr/local/bin/composer
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I was following the steps on installing composer that can be found here: https://getcomposer.org/download/
I get the following message when trying to run php composer-setup.php:
The "https://getcomposer.org/versions" file could not be downloaded: SSL: Connection reset by peer
Failed to enable crypto
failed to open stream: operation failed
Previously, I wasn't able to download composer-setup.php with php -r copy() command, so I downloaded it via browser. The reason was the same: SSL connection failed.
Thanks in advance for your help!
Please or to participate in this conversation.