Jethro Beekman f9174c95c7 Add path probing for modern RHEL-based systems.
On these systems `/etc/pki/tls/certs/ca-bundle.crt` is provided as a
legacy mechanism and isn't updated with system-wide installed roots
by default. This behavior can be changed by running `update-ca-trust
enable` but it would be better to just use the correct path. See
https://www.unix.com/man-page/centos/8/update-ca-trust/ for details.

Note that the legacy path still exists, so the new path needs to
come before it in the search order.
2017-12-12 11:10:35 -08:00
2016-11-05 22:24:07 -07:00
2017-10-20 09:54:54 +08:00
2016-11-05 22:24:20 -07:00
2016-11-05 22:24:20 -07:00
2017-10-20 09:54:54 +08:00

openssl-probe

Tool for helping to find SSL certificate locations on the system for OpenSSL

Crates.io docs.rs

Usage

First, add this to your Cargo.toml:

[dependencies]
openssl-probe = "0.1.1"

Then add this to your crate:

extern crate openssl_probe;

fn main() {
    openssl_probe::init_ssl_cert_env_vars();
    //... 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.

S
Description
用于帮助查找系统上可用于OpenSSL的SSL证书位置的工具 | Tool for helping to find SSL certificate locations on the system for OpenSSL
Readme 101 KiB
Languages
Rust 100%