1
0
mirror of https://github.com/actix/examples synced 2025-06-29 02:10:36 +02:00

Add introduction to use mkcert

This commit is contained in:
Yuki Okushi
2020-05-19 12:46:00 +09:00
parent bc6f614f78
commit b61f7a5e96
7 changed files with 134 additions and 118 deletions

View File

@ -21,6 +21,8 @@ async fn main() -> std::io::Result<()> {
}
env_logger::init();
println!("Started http server: 127.0.0.1:8443");
// load ssl keys
let mut config = ServerConfig::new(NoClientAuth::new());
let cert_file = &mut BufReader::new(File::open("cert.pem").unwrap());