-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use os truststore on linux systems
If the user is sending requests to a server with a TLS server certificate signed by a private CA (e.g. because the server is hosted on a company intranet), connections will fail unless the user is manually trusting the correcy CA certificate. Attempt to use the OS truststore, to not throw people into the PKI rabbithole, by symlinking to the certificate bundle in /etc/ssl or /etc/pki. Should work on Fedora, Arch Linux and Ubuntu. macOS stores its OS truststore in a keychain, not as a plain PEM on the filesystem, so it will probably not work. Fallback will be the Mozilla truststore provided by the certifi package.
- Loading branch information
1 parent
4007ec8
commit 5c6e375
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters