Closed hdevalence closed 10 months ago
I'm definitely open to this. I'm not familiar with tonic, but if you send a PR or a more detailed sketch I'll happily review.
It's been a while, I'll close here, assuming there's no interest anymore. Feel free to reopen.
We're using
rustls-acme
withtonic
, and so far we wrote a some boilerplatey code to hook uprustls-acme
to Tonic's batteries-included server implementation.If we extracted that code and submitted a PR, would you be interested in upstreaming it under a feature flag?
I'm imagining implementing an extension trait, say
AcmeTonicExt
, so that instead of writingfor an http server, it would be possible to write
for an auto-https server. The
serve_with_acme_tls
method would be provided by the extension trait, and handle gluing therustls-acme
methods to thetonic
serve_with_incoming
method.