mirror of
https://github.com/openharmony/third_party_rust_openssl-probe.git
synced 2026-07-01 10:18:23 -04:00
f9174c95c7a4965dd23f6e2ec9e861a0587e42c3
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.
openssl-probe
Tool for helping to find SSL certificate locations on the system for OpenSSL
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.
Description
用于帮助查找系统上可用于OpenSSL的SSL证书位置的工具 | Tool for helping to find SSL certificate locations on the system for OpenSSL
Languages
Rust
100%