Rustls certificates store
- platform-verifier (default)
- native-certs
- webpki-root-certs
Warning about crypto backends for rustls
A crypto implementation must be enabled in rustls using feature flags. We mimic what rustls does, providing one feature flag per implementation and enabling the same as rustls by default. Available options are:
rustls--aws_lc_rs(default)rustls--ring
Example
To connect to a remote server:
use RustlsConnector;
use ;
let connector = new_with_platform_verifier.unwrap;
let stream = connect.unwrap;
let mut stream = connector.connect.unwrap;
stream.write_all.unwrap;
let mut res = vec!;
stream.read_to_end.unwrap;
println!;