Hacker News new | ask | show | jobs
by robofanatic 1375 days ago
I just ran this and got a bad cert error. How should I fix it?

deno run -A -r https://fresh.deno.dev my-project

Sending fatal alert BadCertificate error: error sending request for url (https://fresh.deno.dev/): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

1 comments

Are you behind a corporate firewall? Can you set `DENO_TLS_CA_STORE=system` and try again?
Is deno using a custom cert store by default?

---

https://deno.com/blog/v1.13#use-system-certificate-store-for...

It uses the Mozilla certificate store by default.
yes and thanks so much. that did the trick!