M
M
Michael2021-11-24 10:19:43
PHP
Michael, 2021-11-24 10:19:43

How to resolve ssl certificate verification error in terminal when executing composer update command?

Hello everyone! Please tell me, I use OpenServer and its terminal, yesterday I installed the yii-app-advanced project, I typed the composer update command in the terminal and got the following error:

[Composer\Downloader\TransportException]
  curl error 60 while downloading https://asset-packagist.org/packages.json:
  SSL certificate problem: certificate has expired

619de6d6df3b1193381279.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mylistryx, 2021-11-24
@Mylistryx

composer config disable-tls true
but this is such a solution to the problem.

T
TheAndrey7, 2021-11-24
@TheAndrey7

You need to update the file with root certificates: openserver/userdata/config/cacert.pem

V
vavyan, 2022-01-10
@vavyan

how to update the cacert.pem file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question