Skip to content

Commit 60140f5

Browse files
committed
feat: add openharmony platform preset certs folder
1 parent a03745e commit 60140f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ impl ProbeResult {
136136

137137
#[cfg(target_os = "linux")]
138138
const CERTIFICATE_DIRS: &[&str] = &[
139-
"/etc/ssl/certs", // SLES 10, SLES 11
140-
"/etc/pki/tls/certs", // Fedora, RHEL
139+
"/etc/ssl/certs", // SLES 10, SLES 11
140+
"/etc/pki/tls/certs", // Fedora, RHEL
141+
"/etc/security/certificates", // OpenHarmony, https://developer.huawei.com/consumer/en/doc/best-practices/bpta-network-ca-security#section121091116142117
141142
];
142143

143144
#[cfg(target_os = "freebsd")]
@@ -174,6 +175,7 @@ const CERTIFICATE_FILE_NAMES: &[&str] = &[
174175
"/etc/pki/tls/cacert.pem", // OpenELEC (a media center Linux distro)
175176
"/etc/ssl/cert.pem", // Alpine Linux
176177
"/opt/etc/ssl/certs/ca-certificates.crt", // Entware, https://github.com/rustls/openssl-probe/pull/21
178+
"/etc/ssl/certs/cacert.pem", // OpenHarmony, https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs/faqs-network-41
177179
];
178180

179181
#[cfg(target_os = "freebsd")]

0 commit comments

Comments
 (0)