Crates.io | openssl-probe |
lib.rs | openssl-probe |
version | 0.1.6 |
created_at | 2016-11-06 05:25:41.005024+00 |
updated_at | 2025-01-23 16:14:49.108354+00 |
description | Tool for helping to find SSL certificate locations on the system for OpenSSL |
homepage | https://github.com/alexcrichton/openssl-probe |
repository | https://github.com/alexcrichton/openssl-probe |
max_upload_size | |
id | 7142 |
size | 22,460 |
Tool for helping to find SSL certificate locations on the system for OpenSSL
First, add this to your Cargo.toml
:
[dependencies]
openssl-probe = "0.1.6"
Then add this to your crate:
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
}
}
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.