Quantcast
Channel: SSL Verify Failed error while insatlling Composer on Windows 7 with proxy - Super User
Viewing all articles
Browse latest Browse all 3

SSL Verify Failed error while insatlling Composer on Windows 7 with proxy

$
0
0

My error is whenever I try to install Composer using both the GUI and command line I get the same error with SSL verification failing and thus can't connect to HTTPs through my proxy. I am on a Windows 7 machine running XAMPP behind a proxy.

To start I have done my research on this error and have tried all of the solutions on other posts, and I am wondering what I missed.

The things that I have tried:

  • Currently using XAMPP for apache, I downloaded and installed latest versions as well as a few previous versions
  • I re-downloaded the curl-ca-bundle.crt and updated my \xampp\apache\bin\curl-ca-bundle.crt to reflect the latest version (~roughly 20kb difference between the one that came with XAMPP and the one I downloaded).
  • I manually downloaded the certificate for getcomposer.org and appended it to the end of my curl-ca-bundle.crt. (Yes I am sure that this is the file that PHP/Composer is using to install)
  • When I try to install this through command line I get an error saying no such host is known. I figured out that this issue is due to HTTP/HTTPS_PROXY urls not being set. I turned them on and then I get the same error as through the GUI (found below)
  • I then when through Composer's site and downloaded the .exe to install, in the installer I have the option to specify proxy (which I did) to get rid of the no sush host, after I specified the proxy I now have the exact same error as the command line.
  • Disabling the SSL/TLS for composer. But it still fails when trying to contact any website with https.

GUI:

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]: \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: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed failed to open stream: Cannot connect to HTTPS server through proxy

CMD Line:

C:\Users\S0077500\Desktop\Laravel\Attempt 7>php composer.phar diagnoseYou are running Composer with SSL/TLS protection disabled.Checking platform settings: OKChecking git settings: OKChecking http connectivity to packagist: OKChecking https connectivity to packagist: WARNING[Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSLError messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedfailed to open stream: Cannot connect to HTTPS server through proxyComposer is configured to disable SSL/TLS protection. This will leave remote HTTPS requests vulnerable to Man-In-The-Middle attacks.Checking HTTP proxy: FAIL[Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSLError messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedfailed to open stream: Cannot connect to HTTPS server through proxyChecking HTTP proxy support for request_fulluri: OKChecking HTTPS proxy support for request_fulluri: Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedfailed to open stream: Cannot connect to HTTPS server through proxy)Checking github.com rate limit: FAIL[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedfailed to open stream: Cannot connect to HTTPS server through proxyChecking disk free space: OKChecking pubkeys: FAILMissing pubkey for tags verificationMissing pubkey for dev verificationRun composer self-update --update-keys to set them upChecking composer version:  [Composer\Downloader\TransportException]  The "https://getcomposer.org/versions" file could not be downloaded: SSL op  eration failed with code 1. OpenSSL Error messages:  error:1416F086:SSL routines:tls_process_server_certificate:certificate veri  fy failed  failed to open stream: Cannot connect to HTTPS server through proxydiagnoseC:\Users\S0077500\Desktop\Laravel\Attempt 7>

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images