The "https://repo.magento.com/packages.json" file could not be downloaded: SSL: Connection reset by peer screencapture of error

How can I fix this? I already updated my credentials. This is my ~/.composer/auth.json file

    "http-basic": {
        "repo.magento.com": {
            "username": "public_key_from_magento_0123456789",
            "password": "private_key_from_magento_012345678"
        "company-i-work-for.git.beanstalkapp.com": {
            "username": "my_username",
            "password": "0123456789"
    "github-oauth": {
        "github.com": "863a989b657e232c7a790ad0123456789"

1 Answer 1


I see you're on a Mac. The issue could be the fact that your openssl package either doesn't support or doesn't default to TLS 1.1+. I'm not certain but that looks like the error you would get. See if this helps explain it but it's up to you to find an update in your software repo or get openssl from another repo.

  • Also, upgraded to MAMP 4.0.4 issue is now fixed.
    – camdixon
    Oct 11, 2016 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.