A library for helping to find system-wide trust anchor certificate locations
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Joe Birr-Pixton 9181752ff5 Prepare 0.2.1
2026-01-20 19:50:07 +00:00
.github/workflows ci: check cargo-deny (and fix up SPDX metadata) 2026-01-03 12:38:25 +00:00
examples create basic example to ease testing on new systems 2022-01-09 18:42:14 -08:00
src feat: add openharmony platform preset certs folder 2026-01-03 13:36:04 +00:00
.gitignore Initial commit 2016-11-05 22:24:07 -07:00
Cargo.toml Prepare 0.2.1 2026-01-20 19:50:07 +00:00
deny.toml ci: check cargo-deny (and fix up SPDX metadata) 2026-01-03 12:38:25 +00:00
LICENSE-APACHE Add licenses 2016-11-05 22:24:20 -07:00
LICENSE-MIT Add licenses 2016-11-05 22:24:20 -07:00
README.md docs: clarify lib description, update README 2026-01-20 19:40:39 +00:00

openssl-probe

A library for helping to find system-wide trust anchor ("root") certificate locations based on paths typically used by openssl.

For most users, rustls-platform-verifier or rustls-native-certs are more convenient and robust ways to have TLS connections respect system configuration. This is a lower-level library.

Crates.io docs.rs

Usage

fn main() {
    let result = openssl_probe::probe();
    if let Some(dir) = &result.cert_dir {
        //... your code
    }
    if let Some(file) = &result.cert_file {
        //... your code
    }
}

License

openssl-probe is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.