github / github/copilot-cli

SSL_CERT_DIR containing multiple directories not supported

Aperta
#3,669 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:networking
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Locate the CLI code that reads SSL_CERT_DIR and SSL_CERT_FILE, then compare its behavior with the referenced OpenSSL environment-variable documentation. Reproduce the issue using the colon-separated example and verify that multiple certificate directories are handled while existing single-directory behavior remains intact.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli, security
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
58/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.