hyper-rustls
hyper-rustls copied to clipboard
Integration between hyper HTTP library and rustls TLS stack
Fixes #173. This is basically a simplified version of https://github.com/rustls/rustls/tree/main/test-ca.
It seems the certificate in `/examples` is out of date. ``` cat examples/sample.pem | openssl x509 -noout -enddate notAfter=Feb 3 16:07:04 2022 GMT ```
I see an [old issue](https://github.com/rustls/hyper-rustls/issues/3) about proxy configuration, but it seems like hyper removed the ProxyConfig struct some years ago. Is there a way to configure an HttpsConnector with an...
Hey, I thought the following would work to make `https or http` calls: ```rust let mut connector = HttpConnector::new(); let connector = hyper_rustls::HttpsConnectorBuilder::new() .with_native_roots() .https_or_http() .enable_http1() .wrap_connector(connector), let client =...
Thanks for working on this crate. It's really useful. I do have an issue though: If I add hyper-rustls to my Cargo.toml as follows: ``` hyper-rustls = { version =...
See #170. I remember also getting confused about this recently.
Currently, the `rustls::ServerName` value passed to rustls for SNI [is always based on the hostname of the URI](https://docs.rs/hyper-rustls/latest/src/hyper_rustls/connector.rs.html#97). However, sometimes it is necessary to override the SNI for specific requests,...
steps to reproduce: first, verify the server example works: ```console $ cargo run --example server Starting to serve on https://127.0.0.1:1337. ``` --- ```console $ curl -X POST --data "POST-it note"...
Hi all, I couldn't find an API to enable 0-RTT. Is there an easy way to use this lib and enable it?
```rust use anyhow::Error; use hyper::{body::HttpBody, Client}; #[tokio::main] async fn main() -> Result { let https = hyper_rustls::HttpsConnectorBuilder::new() .with_native_roots() .https_or_http() .enable_http1() .build(); let client = Client::builder().build::(https); let url = "https://wpt.live/resources/testharness.js".parse()?; let...