-
Notifications
You must be signed in to change notification settings - Fork 150
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
example of client with mutual tls #211
Comments
Hi again 👋 Your example has: // Create HTTPS connector
let rustls_config = tokio_rustls::rustls::ClientConfig::builder()
.with_safe_defaults()
.with_root_certificates(root_cert_store)
.with_no_client_auth(); To have your client offer a client certificate during the handshake for mTLS you will want to replace You can use Hope those are helpful pointers :-) |
Yes, got it working... thank you very much again :D and have a nice weekend! |
Glad to hear it! |
Hi,
I am trying to create a hyper client with mutual tls and using rustls to handle the certificates, the certificates are self signed, I can get the communication working but I am missing the part where I specify the client cert... my work is based on this example https://github.com/rustls/hyper-rustls/blob/main/examples/client.rs
Maybe the solution is there but I could not find it...
this is my example
And I am getting an unauthorized error
I am assuming this is because I have not injected the client cert into the request. I am looking for some guidance on how to do the client authentication
thank you very much
The text was updated successfully, but these errors were encountered: