Create simple `rustls` client config.
()
| 65 | |
| 66 | /// Create simple `rustls` client config. |
| 67 | fn rustls_config() -> rustls::ClientConfig { |
| 68 | use rustls_platform_verifier::ConfigVerifierExt as _; |
| 69 | |
| 70 | rustls::crypto::aws_lc_rs::default_provider() |
| 71 | .install_default() |
| 72 | .unwrap(); |
| 73 | |
| 74 | // The benefits of the platform verifier are clear; see: |
| 75 | // https://github.com/rustls/rustls-platform-verifier#readme |
| 76 | rustls::ClientConfig::with_platform_verifier() |
| 77 | } |