composer install fail

Job ID: 30990278

Budget: $10 – $30 USD

i contacted two freelancers and failed. both of them give me no response and successfully wasted my 5 hours.


I purchased a new VPS windows server. and tried to install composer.

the error is

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:\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:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto

Is there anyone who can really help me?
Related categories: PHP Linux Apache Shell Script Ubuntu