Unable to install composer due to certificate issues

So, I tried all morning to install the composer so that I can start using the larvel framework.

I am running a Windows r2 server, standard 64-bit, from XAMPP to php 7.0

When I run Composer-Setup.exe, I get the following message.

The file https://getcomposer.org/versions cannot be loaded: SSL operation error with code 1. OpenSSL error messages: Error: 14090086: SSL routines: ssl3_get_server_certificate: certificate Cryptographic verification failed Failed to open stream: operation failed

I looked through the network, and in most cases the problem that I seem to point to is the cacert.pem file.

So, I followed the instructions for downloading the certificate from https://curl.haxx.se/ca/cacert.pem

I just made a .txt file, copied the contents into it from the above link and renamed the file, so it was a cacert.pem file.

Then specify the .pem file inside php.ini

openssl.cafile = C: \ cacert.pem

Restore apache and then run setup.

After restarting, I get exactly the same error as the ssl operation with code 1.

Hope someone can see what I'm doing wrong here?

+7
windows php ssl laravel composer-php
source share
3 answers
  • Are you using the latest version of Composer?
  • Try disabling the HTTP proxy (if you have one).
  • Read the ticket with the same problem to get more inspiration if 1 and 2 did not help.
+1
source share

open_ssl open in php?

you may need to install open ssl using

apt-get install open-ssl

0
source share

You just need to uncomment this line in php.ini

extension=php_openssl.dll 
0
source share

All Articles