blob: fbf21d0810eeafc16883ebe0bfcfadfa5d705d0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# openssl-probe
Tool for helping to find SSL certificate locations on the system for OpenSSL
[](https://crates.io/crates/openssl-probe)
[](https://docs.rs/openssl-probe/)
## Usage
First, add this to your `Cargo.toml`:
```toml
[dependencies]
openssl-probe = "0.1.6"
```
Then add this to your crate:
```rust
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](./LICENSE-APACHE), and [LICENSE-MIT](LICENSE-MIT) for details.
|