You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am trying to add a custom cert resolver to a rustls/hyper setup but found it difficult to use ResolvesServerCertUsingSni as well as creating my own resolver.
Would it be possible to provide a example for this case?
letmut cfg = rustls::ServerConfig::builder().with_safe_defaults().with_no_client_auth().with_cert_resolver(/* what exactly needs to be provided here? */);
Thank you and all the best!
Paul
The text was updated successfully, but these errors were encountered:
These days I would consider using the rustls Acceptor API instead of using the ResolvesServerCert API. This provides more flexibility and fits better with async code (using the tokio-rustls LazyConfigAcceptor at least).
Hi!
I am trying to add a custom cert resolver to a rustls/hyper setup but found it difficult to use
ResolvesServerCertUsingSni
as well as creating my own resolver.Would it be possible to provide a example for this case?
Working with https://github.com/rustls/hyper-rustls/blob/main/examples/server.rs works fine and is comprehensible for me.
The
with_cert_resolver
function on the other hand is not easy to understand from the provided documentation.Thank you and all the best!
Paul
The text was updated successfully, but these errors were encountered: