Sunbeam Studios

Our open-source projects, here for you!

openssl-probe (0.2.1)

Published 2026-03-26 11:00:49 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add openssl-probe@0.2.1

About this package

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

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.

Details
Cargo
2026-03-26 11:00:49 +00:00
0
Alex Crichton <alex@alexcrichton.com>
MIT OR Apache-2.0
8.3 KiB
Assets (1)
Versions (2) View all
0.1.6 2026-03-26
0.2.1 2026-03-26