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
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!