tide-rustls icon indicating copy to clipboard operation
tide-rustls copied to clipboard

TlsListenerConfig with buffer, or Read trait

Open ratmice opened this issue 5 years ago • 0 comments

afaict the TlsListenerConfig currently requires sending it PathBuf's, which eventually opens/reads the keys and certs, it would be nice if there were a way to pass it an &[u8] or more likely something implementing the Read trait, so you can use keys and certs that aren't stored on the filesystem.

                TlsListener::build()
                    .addrs("localhost:4433")
                    .cert(cert_path)
                    .key(key_path),

ratmice avatar Nov 10 '20 16:11 ratmice