jsenv / https-local

A programmatic way to generate locally trusted certificates
MIT License
3 stars 0 forks source link

autoTrust not working anymore for chrome and firefox on linux #9

Open dmail opened 1 year ago

dmail commented 1 year ago

Looks like chrome and firefox have updated how they store certificates on Linux.

Maybe there is just a new url to put there: https://github.com/jsenv/https-local/blob/ef072a154d2f1dafdb2e00cd91d95224739b5649/src/internal/linux/chrome_linux.js#L40-L47

dmail commented 1 year ago

Since chrome 105, chrome uses his own certificate store on windows and Linux. Still relying on system for macos due to their policy. For windows and Linux, until there is a programmatic solution found, trusting cert must be done manually.

dmail commented 1 year ago

The manual process is easy and described for instance here: https://doc.webradiocontrol.tech/user-guide/installing-tls-certificate/chrome-linux/

But is there still a programmatic way to achieve that? That would be great

dmail commented 1 year ago

Others tools like https://github.com/davewasmer/devcert and https://github.com/FiloSottile/mkcert have the same issue.

See https://github.com/FiloSottile/mkcert/issues/488 and https://github.com/davewasmer/devcert/issues/93 for instance