我按照此处的说明在 Ubuntu 上使用 WSL2:https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal
➜ my-drupal10-site2 ddev composer create drupal/recommended-project
Executing Composer command: [composer create-project drupal/recommended-project --no-
install /tmp/hwdqJW]
Creating a "drupal/recommended-project" project at "/tmp/hwdqJW"
Installing drupal/recommended-project (10.2.4)
- Downloading drupal/recommended-project (10.2.4)
- Downloading drupal/recommended-project (10.2.4)
- Downloading drupal/recommended-project (10.2.4)
- Downloading drupal/recommended-project (10.2.4)
Failed to download drupal/recommended-project from dist: curl error 60 while
downloading https://api.github.com/repos/drupal/recommended-
project/zipball/b4d1be6b9682e27a6adc430ad08a14745d0b67ff: SSL certificate problem:
self signed certificate in certificate chain
Now trying to download from source
我有一个 .cer 证书文件,应该可以修复此问题。我应该把这个文件放在哪里,以便使用它,这样我就不会收到自签名证书错误?当我使用以下命令测试此文件时:
openssl s_client -connect api.github.com:443 -CAfile /home/snrub/mycert-base64.cer
...效果很好!但是,如果我运行此命令:
openssl s_client -connect api.github.com:443
...它因自签名证书错误而失败。所以我只需要知道将 .cer 文件放在哪里。