shopware / development

MIT License
189 stars 169 forks source link

Unable to locate a valid CA certificate file #115

Open MartinRaitza opened 4 years ago

MartinRaitza commented 4 years ago

Script crashes on step 2/38 when running ./psh.phar install on docker (version 2.3.0.3) env. I tried the step by step installation on my mashine (MacOS Mojave 10.14.3).

(2/38) Starting

composer install --no-interaction --optimize-autoloader --no-suggest --no-scripts Unable to locate a valid CA certificate file. You must set a valid 'cafile' option. A valid CA certificate file is required for SSL/TLS protection. You can disable this error, at your own risk, by setting the 'disable-tls' option to true.

      [Composer\Downloader\TransportException]                   
      The configured cafile was not valid or could not be read.  

I tried to fix it but it doesnt work: php -r 'var_dump(openssl_get_cert_locations());' array(8) { ["default_cert_file"]=> string(21) "/usr/lib/ssl/cert.pem" Then in init-composer.sh: composer config --global cafile '/usr/local/etc/openssl/cert.pem'

or

docker run --privileged to modify the development php ini. Does not work either.

shyim commented 4 years ago

Hey,

I cannot reproduce it. Still issue?

MartinRaitza commented 4 years ago

Hey @shyim, thank your for your answer.

I will try it with the new code base on the weekend.

chriskrj commented 3 years ago

Ich have the Same Error Mac OS 10.15.7 Docker Desktop 2.5.0.1

askolt commented 3 years ago

Have the same error. Windows 10. Last composer.phar

MartinRaitza commented 3 years ago

@askolt It works for me now.

With MacOS the default resources for docker are very low and not enough for the installation.

Try to push them up (under Preferences/Resources) and rerun.

My settings: CPUs: 4 Memory: 8.00 GB Swap: 3 GB

image

Worth a try!