From d42c8ee4a20f5c6b85cf981a3c7cf98475514d3e Mon Sep 17 00:00:00 2001 From: Cameron Dershem Date: Tue, 18 Jun 2019 17:29:54 -0400 Subject: [PATCH] Updated SSL section with notes to create certs. --- examples/server/src/ssl.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/server/src/ssl.rs b/examples/server/src/ssl.rs index 08f9ce1..4efb8de 100644 --- a/examples/server/src/ssl.rs +++ b/examples/server/src/ssl.rs @@ -8,6 +8,8 @@ fn index(_req: HttpRequest) -> impl Responder { pub fn main() { // load ssl keys + // to create a self-signed temporary cert for testing: + // `openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost'` let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap(); builder