Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Unable to locate a valid CA certificate file  #115

Open
@MartinRaitza

Description

@MartinRaitza

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions