EmbarkStudios / cargo-about

📜 Cargo plugin to generate list of all licenses for a crate 🦀
http://embark.rs
Apache License 2.0
525 stars 31 forks source link

cargo-about ignores system SSL certificates #238

Open arvid-norlander opened 10 months ago

arvid-norlander commented 10 months ago

Describe the bug I'm behind a corporate proxy, specifically a transparent HTTPS proxy. This means I need to have a CA certificate installed, but I don't need to set any environment variables. cargo-about seems to ignore the SSL certificates in /etc/ssl/certs

To Reproduce Steps to reproduce the behavior:

  1. Be behind a HTTPS proxy
  2. Run cargo about generate about.hbs
  3. See warnings
2023-11-21 15:18:13.142344125 +00:00:00 [WARN] failed to request license information from clearly defined: error sending request for url (https://api.clearlydefined.io/definitions): error trying to connect: invalid peer certificate: UnknownIssuer
2023-11-21 15:18:13.143837193 +00:00:00 [WARN] failed to request license information from clearly defined: error sending request for url (https://api.clearlydefined.io/definitions): error trying to connect: invalid peer certificate: UnknownIssuer
2023-11-21 15:18:13.144103949 +00:00:00 [WARN] failed to request license information from clearly defined: error sending request for url (https://api.clearlydefined.io/definitions): error trying to connect: invalid peer certificate: UnknownIssuer
[and so on]

Expected behavior cargo-about should respect CA certificates from the system.

Device:

Additional context Add any other context about the problem here.

Blockmaster2706 commented 5 days ago

Facing the same issue on Windows 11 behind an instance of ZScaler. Root CA Certificate is seemingly not being respected.

OS: Windows 11 Enterprise 22H2 Version: cargo-about 0.6.4 Installed with cargo install --locked cargo-about rustc 1.77.1 (7cf61ebde 2024-03-27)