carllerche / tower-web

A fast, boilerplate free, web framework for Rust
MIT License
980 stars 51 forks source link

Add rustls feature #159

Closed chastabor closed 5 years ago

chastabor commented 5 years ago

I've tested this with both code that didn't use the added rustls TLS feature and code that did and they both compiled and served up pages. Let me know if there is anything I need to adjust.

carllerche commented 5 years ago

Looks great 👍 Is there any way you could contribute an example showing how to start a server w/ TLS? I'm not super familiar w/ rustls, so it would be helpful for me too.

chastabor commented 5 years ago

I can look into that. Was trying to figure out how to set it up without checking in test certs that people may be tempted to use. Maybe just for now I can provide a comment on how to generate test certs.