Composer certificate verify failed error
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
I tried doing a local install of composer using the CentOS 6 Apache 2.4 PHP 7.3 PHP-FPM /usr/local/cpanel/version:11.80.0.23 /var/cpanel/envtype:standard
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failedI tried doing a local install of composer using the CentOS 6 Apache 2.4 PHP 7.3 PHP-FPM /usr/local/cpanel/version:11.80.0.23 /var/cpanel/envtype:standard
-
I have reviewed it and the server is setup correctly. Problem is I get an error message when I run the diagnostic check. user@domain.com [~] 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.root@host [~] 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.root@host [~] update-ca-trust
I even tried reinstalling opensslroot@host [~] yum reinstall openssl0 -
I figured it out. Shell access cannot be set as "Jailed Shell", it must be set as "Normal Shell". 0 -
I would be grateful if somebody mentioned that in the documentation. 0
Please sign in to leave a comment.
Comments
4 comments