As things are right now, only TLS configurations with a single certificate are properly supported. Setting up SNI-based certificate selection is possible but quite a pain, as it requires delving into Rustls. Ideally, there would API analogous to from_pem_chain_file(), for example:
For reference, an approximation of how I currently have to implement this functionality (requires adding rustls and rustls-pemfile as direct dependencies):
As things are right now, only TLS configurations with a single certificate are properly supported. Setting up SNI-based certificate selection is possible but quite a pain, as it requires delving into Rustls. Ideally, there would API analogous to
from_pem_chain_file()
, for example:For reference, an approximation of how I currently have to implement this functionality (requires adding
rustls
andrustls-pemfile
as direct dependencies):This is going to get simpler with Rustls 1.22 but still way too much boilerplate for what should be a trivial task.