i run in an ERR_CERT_AUTHORITY_INVALID with all electron based applications.
i tried slack element-desktop vscode.
environment: I use nix on Fedora 35 steps: nix-shell -p slack element-desktop vscode opsenssl cacert nss error: all applications deny network access due to ERR_CERT_AUTHORITY_INVALID
EDIT:
i tried nix-shell -p chromium and with this chromium browser i also get NET::ERR_CERT_AUTHORITY_INVALID for every website.
ok, tried to remove ~/.pki and rerun chromium results in the same. also tried google-chrome which gives the same error. certutil shows that nssdb is empty after delete and rerun chrome/chromium/firefox
I have an idea about what your issue could be: since NixOS 21.05 (IIRC) nss has been patched to use the system trust store instead of a hardcoded set of CA roots (the cacert package). On NixOS (and Debian, Arch, Gentoo, etc.) the trust store is /etc/ssl/certs/ca-certificates.crt, but Fedora uses /etc/pki/tls/certs/ca-bundle.crt and nss has only been configured for the former location.
There’s one last thing I need to ask you: does the validation work in curl?
I think it should be affected by this too, but maybe (hopefully) I’m missing something.