programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
168 stars 56 forks source link

Support for mTLS #45

Closed rohitjoshi closed 1 year ago

rohitjoshi commented 2 years ago

How do I enable support for mTLS?

Cheban1996 commented 1 year ago

@rohitjoshi hi, do you find how make that?

programatik29 commented 1 year ago

This is possible by providing a custom Arc<ServerConfig> using this function.

Here is an example to how to create one. https://github.com/ttys3/rust-mtls-axum-example/blob/main/src/main.rs#L86-L134