Jeffery Adams
Jeffery Adams

Reputation: 1

The Composer installer script was not successful [exit code 1] for Laravel

I am getting the following error when trying to install Composer.

The Composer installer script was not successful [exit code 1].

OpenSSL failed with a 'certificate verify failed' error. This indicates a problem with the Certificate Authority file(s) on your system, which may be out of date.

Certificate location [from openssl.cafile ini setting]:
C:\php\cacert.pem

The php.ini used by your command-line PHP is: C:\xampp\php\php.ini

Script Output:
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed
Failed to enable crypto
Failed to open stream: operation failed

I have spent 2 days on this.

got this is the error

curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_IS_PARTIAL_CHAIN
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.

I am not new to windows and diagnostic issues, but this is very new to me everything I have done above was suggested by Gemini AI.

My the question I have that out of everything I have done is there something I missed and how to fix this curl/Cacert issue?

Upvotes: -3

Views: 45

Answers (0)

Related Questions