Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use a custom verifier for TLS #6564

Closed
wants to merge 1 commit into from
Closed

Conversation

charliermarsh
Copy link
Member

Summary

This is one attempt to do what's described in #4944 (comment). I'm stuck though because there is no public API to add an Identity to a client builder.

@charliermarsh charliermarsh marked this pull request as draft August 24, 2024 02:36
// If not, we use ring.
let provider = rustls::crypto::CryptoProvider::get_default()
.map(|arc| arc.clone())
.unwrap();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the of above has to be vendored and kept in-sync with reqwest.

// Finalize TLS config
// STOPSHIP(charlie): Add `SSL_CERT` thing, it's private though? Ugh.
let mut tls = config_builder.with_no_client_auth();
tls.enable_sni = true;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically stuck here, we need to read SSL_CERT and add it to config_builder, but the APIs that reqwest uses aren't public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant