curl error 60 while downloading https://api.github.com/: SSL certificate problem: self signed certificate in certificate chain
barbarian1803 opened this issue · comments
I tried to install requirements for my PHP project. I use this command to ente rthe shell:
docker run --rm --interactive --tty --volume $PWD:/app composer bash
Then I tried to install pakcage from the shell using:
docker require [package]
The above error appears. Before that, it asks me to generate github token. I have provided the token also.
Cannot reproduce.
[2022-12-06 11:38:29 +0100] rob@galaga ~
$ cd $(mktemp -d)
[2022-12-06 11:38:33 +0100] rob@galaga /tmp/tmp.myXUtK58oC
$ docker run --rm -it -v $PWD:/app composer bash
bash-5.1# composer require composer/composer
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^2.4 for composer/composer
./composer.json has been created
Running composer update composer/composer
Loading composer repositories with package information
Updating dependencies
Lock file operations: 28 installs, 0 updates, 0 removals
- Locking composer/ca-bundle (1.3.4)
- Locking composer/class-map-generator (1.0.0)
- Locking composer/composer (2.4.4)
- Locking composer/metadata-minifier (1.0.0)
- Locking composer/pcre (3.1.0)
- Locking composer/semver (3.3.2)
- Locking composer/spdx-licenses (1.5.7)
- Locking composer/xdebug-handler (3.0.3)
- Locking justinrainbow/json-schema (5.2.12)
- Locking psr/container (2.0.2)
- Locking psr/log (3.0.0)
- Locking react/promise (v2.9.0)
- Locking seld/jsonlint (1.9.0)
- Locking seld/phar-utils (1.2.1)
- Locking seld/signal-handler (2.0.1)
- Locking symfony/console (v6.2.0)
- Locking symfony/deprecation-contracts (v3.1.1)
- Locking symfony/filesystem (v6.2.0)
- Locking symfony/finder (v6.2.0)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-grapheme (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php73 (v1.27.0)
- Locking symfony/polyfill-php80 (v1.27.0)
- Locking symfony/process (v6.2.0)
- Locking symfony/service-contracts (v3.1.1)
- Locking symfony/string (v6.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 28 installs, 0 updates, 0 removals
- Downloading symfony/process (v6.2.0)
- Downloading symfony/polyfill-php80 (v1.27.0)
- Downloading symfony/polyfill-php73 (v1.27.0)
- Downloading symfony/finder (v6.2.0)
- Downloading symfony/polyfill-mbstring (v1.27.0)
- Downloading symfony/polyfill-ctype (v1.27.0)
- Downloading symfony/filesystem (v6.2.0)
- Downloading symfony/polyfill-intl-normalizer (v1.27.0)
- Downloading symfony/polyfill-intl-grapheme (v1.27.0)
- Downloading symfony/string (v6.2.0)
- Downloading psr/container (2.0.2)
- Downloading symfony/service-contracts (v3.1.1)
- Downloading symfony/deprecation-contracts (v3.1.1)
- Downloading symfony/console (v6.2.0)
- Downloading seld/signal-handler (2.0.1)
- Downloading seld/phar-utils (1.2.1)
- Downloading seld/jsonlint (1.9.0)
- Downloading react/promise (v2.9.0)
- Downloading psr/log (3.0.0)
- Downloading justinrainbow/json-schema (5.2.12)
- Downloading composer/pcre (3.1.0)
- Downloading composer/xdebug-handler (3.0.3)
- Downloading composer/spdx-licenses (1.5.7)
- Downloading composer/semver (3.3.2)
- Downloading composer/metadata-minifier (1.0.0)
- Downloading composer/class-map-generator (1.0.0)
- Downloading composer/ca-bundle (1.3.4)
- Downloading composer/composer (2.4.4)
- Installing symfony/process (v6.2.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
- Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
- Installing symfony/finder (v6.2.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
- Installing symfony/filesystem (v6.2.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
- Installing symfony/string (v6.2.0): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.1.1): Extracting archive
- Installing symfony/deprecation-contracts (v3.1.1): Extracting archive
- Installing symfony/console (v6.2.0): Extracting archive
- Installing seld/signal-handler (2.0.1): Extracting archive
- Installing seld/phar-utils (1.2.1): Extracting archive
- Installing seld/jsonlint (1.9.0): Extracting archive
- Installing react/promise (v2.9.0): Extracting archive
- Installing psr/log (3.0.0): Extracting archive
- Installing justinrainbow/json-schema (5.2.12): Extracting archive
- Installing composer/pcre (3.1.0): Extracting archive
- Installing composer/xdebug-handler (3.0.3): Extracting archive
- Installing composer/spdx-licenses (1.5.7): Extracting archive
- Installing composer/semver (3.3.2): Extracting archive
- Installing composer/metadata-minifier (1.0.0): Extracting archive
- Installing composer/class-map-generator (1.0.0): Extracting archive
- Installing composer/ca-bundle (1.3.4): Extracting archive
- Installing composer/composer (2.4.4): Extracting archive
5 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
23 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
bash-5.1#