PHP Composer

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

PHP Composer

Post 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.
Post Reply