With native_tls I see:
let ssl = ssl().expect("Failed to load SSL keys");
let builder: native_tls::TlsAcceptorBuilder =
native_tls::backend::openssl::TlsAcceptorBuilderExt::from_openssl(ssl);
let tls_acceptor = builder.build().expect("Failed to build TLS acceptor");
Which I think has:
https://en.wikipedia.org/wiki/Server_Name_Indication
and:
https://docs.rs/native-tls/0.2.3/native_tls/struct.TlsConnectorBuilder.html#method.use_sni
use_sni is true by default.
But I'm still looking for correct way to load up N certs for N different domains and run all from the same server on same 443 port.
Is there way to call TlsAcceptorBuilderExt::from_openssl(ssl)
over and over with N certs?
Edit1: found this which explains a lot.