github / github/copilot-cli

SSL_CERT_DIR containing multiple directories not supported

未关闭
#3,669 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:networking
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Currently Copilot Cli is not OpenSSL compliant in handling of environment variable `SSL_CERT_DIR`.

### Affected version

GitHub Copilot CLI 1.0.59

### Steps to reproduce the behavior

1. Set `SSL_CERT_DIR` to a path containing multiple directories separated by colons, e.g. `/home/username/.aspnet/dev-certs/trust:/usr/lib/ssl/certs`
2. Start GitHub Copilot Cli `copilot`
3. Error message is thrown:
> Cannot open directory /home/username/.aspnet/dev-certs/trust:/usr/lib/ssl/certs to load OpenSSL certificates.

### Expected behavior

Copilot conforms to OpenSSL documented behavior with regards to environment variables `SSL_CERT_DIR` and `SSL_CERT_FILE`, see [openssl-env - OpenSSL environment variables](https://docs.openssl.org/3.0/man7/openssl-env/) for reference

### Additional context

Official [.NET SDK](https://github.com/dotnet/sdk) recommends setting `SSL_CERT_DIR` to multiple directories, in order to trust the local developer certificate.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。