Composer certificate verify failed error

raysolomon

Active Member
Oct 12, 2006
29
2
153
cPanel Access Level
Root Administrator
I'm trying to run composer from a user account in a jailed shell and unable to install some packages because the composer installer is reporting this error
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

I tried doing a local install of composer using the instructions on the composer site and get the message "Installer corrupt".

I read that composer is globally installed by cpanel as of version 58 and I can use it without any issues as the root user, but that is highly not recommend from what I read.

How do I get this working for a user account?

- Removed -

System details:
CentOS 6
Apache 2.4
PHP 7.3
PHP-FPM
/usr/local/cpanel/version:11.80.0.23
/var/cpanel/envtype:standard
 
Last edited by a moderator:

raysolomon

Active Member
Oct 12, 2006
29
2
153
cPanel Access Level
Root Administrator
I have reviewed it and the server is setup correctly.

Problem is I get an error message when I run the diagnostic check.

[email protected] [~] curl https://raw.githubusercontent.com/composer/getcomposer.org/master/web/installer | php -- --check

curl: (77) Problem with the SSL CA cert (path? access rights?)

I even replaced the ca bundle and restarted services to see if that would help and I get the same error.
[email protected] [~] curl https://curl.haxx.se/ca/cacert.pem --insecure -o /etc/pki/tls/certs/ca-bundle.crt

I have to use the insecure parameter for the curl command or else I get the same curl 77 error on that too.

Then I reverted the ca bundle change by running this.
[email protected] [~] update-ca-trust

I even tried reinstalling openssl
[email protected] [~] yum reinstall openssl