Page 1 of 1

PHP Composer

Posted: Mon Oct 12, 2020 11:20 pm
by peter_b
[PROBLEM]
Trying to update packages using composer:

Code: Select all

$ composer update
Throws the following error message:
Loading composer repositories with package information

[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed

[SOLUTION]
Seems the CACert.pem root certificate was either missing or outdated.
I've installed it from default repos (Debian 9):

Code: Select all

$ sudo apt install ca-cacert
Then try again.