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

update mkcert command

This commit is contained in:
Rob Ede
2023-05-22 14:18:07 +01:00
parent 48565526e7
commit 8c1b59ff9e
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ async fn main() -> io::Result<()> {
// set the unencrypted private key
// (uncomment if you generate your own key+cert with `mkcert`, and also remove the statement above)
// builder.set_private_key_file("key.pem").unwrap();
// builder
// .set_private_key_file("key.pem", openssl::ssl::SslFiletype::PEM)
// .unwrap();
// set the certificate chain file location
builder.set_certificate_chain_file("cert.pem").unwrap();