Composer SSL3_GET_SERVER_CERTIFICATE: certificate verify failed

2

Work in a public agency and here the accesses are very restricted. I've been experiencing problems trying to run "composer install" or "composer update", this is also true for NPM or Bower.

The details of the error when trying to run "composer update" follow:

The "https://packagist.org/packages.json" file could not be downloaded: 
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed

It was the same when trying to "clone" and "push" in git, but you could cheat using

GIT_SSL_NO_VERIFY=true git clone https://repositório

I have already downloaded the certificate ca-cert.pem and set up php.ini to get the correct path of the certificate, but nothing worked.

Return of composer diagnose:

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: 
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: 
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Checking composer version:
[Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded:
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
diagnose

Has anyone ever had a similar problem?

    
asked by anonymous 24.07.2015 / 15:35

0 answers