October 22, 2024
Chicago 12, Melborne City, USA
PHP

Composer installer script was not successful – OpenSSL failed with a 'certificate verify failed' error


When I try to install composer comes to me this error message and I am already installed XAMPP:

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:\xampp\apache\bin\curl-ca-bundle.crt

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: php_network_getaddresses: getaddrinfo for
getcomposer.org failed: No such host is known. 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



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video