Packagist: Certificate error for repo.packagist.org

Created on 15 Nov 2018  路  4Comments  路  Source: composer/packagist

Loading composer repositories with package information
The "https://repo.packagist.org/packages.json" file could not be downloaded: Peer certificate CN=`packagist.org' did not match expected CN=`repo.packagist.org'
Failed to enable crypto
failed to open stream: operation failed
https://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

when i have

     {
            "type": "composer",
            "url": "https://asset-packagist.org"
     }

in my composer.json

Most helpful comment

Sorry about that, it's been fixed. Please do not disable secure-http. If you ran the comment above run this to undo it:

composer config --global disable-tls --unset
composer config --global secure-http --unset
composer config --global repo.packagist --unset

All 4 comments

same issue

Same, seems the cert is broken. Can bypass the check but i dont think it is wise to run it

composer config --global disable-tls true
composer config --global secure-http false
composer config --global repo.packagist composer http://packagist.org

Sorry about that, it's been fixed. Please do not disable secure-http. If you ran the comment above run this to undo it:

composer config --global disable-tls --unset
composer config --global secure-http --unset
composer config --global repo.packagist --unset

@Seldaek great! will undo right away. However i couldnt wait since the complete development pipeline was down

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chriskapp picture chriskapp  路  6Comments

klatys picture klatys  路  8Comments

alexbowers picture alexbowers  路  7Comments

jaykepeters picture jaykepeters  路  11Comments

nicolas-grekas picture nicolas-grekas  路  12Comments