denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.52k stars 5.18k forks source link

Invalid root certificates cause Deno to panic #24137

Open Pii-USD opened 1 month ago

Pii-USD commented 1 month ago

Version: Deno 1.37.2

Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report.

Platform: windows x86_64 Version: 1.37.2 Args: ["C:\Program Files\RStudio\resources\app\bin\quarto\bin\tools\x86_64\deno", "run", "--unstable", "--no-config", "--cached-only", "--allow-read", "--allow-write", "--allow-run", "--allow-env", "--allow-net", "--allow-ffi", "--importmap", "C:\Program Files\RStudio\resources\app\bin\quarto\bin\vendor\import_map.json", "C:\Program Files\RStudio\resources\app\bin\quarto\bin\quarto.js", "install", "tinytex"]

thread 'main' panicked at cli\args\mod.rs:525:14: Failed to add platform cert to root cert store: InvalidCertificate(BadEncoding) note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

yazan-abdalrahman commented 1 month ago

Hello @littledivy , @Pii-USD , could you clarify how I may re-produce the issue?