Client authentication http server (mtls)?

Hello!

I am just starting my journey with Rust, and would like to leverage one of the existing web frameworks ( Rocket, Gotham or any recommended other ... ? ). But from their documentation it is not quite clear to me if they have client authentication (mutual tls) capabilities. If so are there any example projects one could look at? and are they meant to be used with async code?

Best,

When I looked into this earlier in the year I don't think Actix, Gotham, or Rocket had support for mTLS. We deployed nginx and did the mTLS there, upstream proxying the requests to our Rust app.

Ended up being able to solve this using an Actix web server example. I've put my code up on GitHub: GitHub - sjolicoeur/rust-mtls-example-server: This is a sample project to have mutual-tls, client authentication, with an Actix Rust based webserver.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.