You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an HTTPS server with a self-signed certificate and my goal is to create a Hyper client using a HttpsConnector<SocksConnector<HttpConnector>> connector.
Dependencies:
hyper-socks2 = { version = "0.7.0", default-features = false, features = ["hyper-tls"] }
Then I do like this:
let https_http_connector = config.rustls_https_connector()?;
let mut http_connector = hyper::client::HttpConnector::new();
http_connector.enforce_http(false);
let socks_https_http_connector = SocksConnector {
proxy_addr: std::env::var("SOCKS5").unwrap().parse::<Uri>().unwrap(), // scheme is required by HttpConnector
auth: None,
connector: https_http_connector.clone(),
};
// create HttpsConnector ????
// inject server, CA and client certs ????
I noticed the hyper-tls feature does not provide the with_tls function.
But I don't know how to create HttpsConnector from the SocksConnector and inject the server, CA, and client certificate, any hints?
thank you very much
The text was updated successfully, but these errors were encountered:
Hi,
I have an HTTPS server with a self-signed certificate and my goal is to create a Hyper client using a
HttpsConnector<SocksConnector<HttpConnector>>
connector.Dependencies:
Then I do like this:
I noticed the
hyper-tls
feature does not provide thewith_tls
function.But I don't know how to create HttpsConnector from the SocksConnector and inject the server, CA, and client certificate, any hints?
thank you very much
The text was updated successfully, but these errors were encountered: