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:
@ -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)
|
||||
|
Reference in New Issue
Block a user