Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ const CERTIFICATE_FILE_NAMES: &[&str] = &[
"/etc/ssl/ca-bundle.pem", // OpenSUSE
"/etc/pki/tls/cacert.pem", // OpenELEC (a media center Linux distro)
"/etc/ssl/cert.pem", // Alpine Linux
"/etc/ssl/certs/ca-bundle.crt", // Nix's pkgs.cacert

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have /etc/ssl/certs in CERTIFICATE_DIRS on Linux. rustls-native-certs loads PEM certs from any files found in any of these directories. Is there a reason why native-tls does not do that?

"/opt/etc/ssl/certs/ca-certificates.crt", // Entware, https://github.com/rustls/openssl-probe/pull/21
"/etc/ssl/certs/cacert.pem", // OpenHarmony, https://developer.huawei.com/consumer/en/doc/harmonyos-faqs/faqs-network-41
];
Expand Down
Loading