cancel
Showing results for 
Search instead for 
Did you mean: 

Composer installation failed with certificate verify failed error

Composer installation failed with certificate verify failed error

Hi,

I am trying to set up Adobe commerce, able to install and start XAMPP control panel but composer installation failed with below error. I am trying from my office laptop which is behind corporate VPN or firewall. Can anyone help me on solution to fix this issue?

image.png

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: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated
SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086Smiley FrustratedSL routines::certificate verify failed
Failed to open stream: Cannot connect to HTTPS server through proxy

1 REPLY 1

Re: Composer installation failed with certificate verify failed error

I tried installing composer with and without HTTPS Proxy from environment variables but was not successful.

I also tried by commenting out openssl.cafile="C:\xampp\apache\bin\curl-ca-bundle.crt in php.ini file.

Is there any way I can get the installation successful in my office laptop which connects to VPN or behind organization's firewall.