1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

clean up rustls example

This commit is contained in:
Rob Ede
2022-03-15 18:17:19 +00:00
parent c9ebeacf58
commit 4f1881d1a3
5 changed files with 97 additions and 40 deletions

View File

@ -18,7 +18,7 @@ async fn main() -> io::Result<()> {
println!("Started http server: 127.0.0.1:8443");
// load ssl keys
// load TLS keys
let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
builder
.set_private_key_file("key.pem", SslFiletype::PEM)