rustls_native_certs/unix.rs
1use crate::load_pem_certs;
2use crate::Certificate;
3
4use std::io::Error;
5
6pub fn load_native_certs() -> Result<Vec<Certificate>, Error> {
7 let likely_locations = openssl_probe::probe();
8
9 match likely_locations.cert_file {
10 Some(cert_file) => load_pem_certs(&cert_file),
11 None => Ok(Vec::new()),
12 }
13}