1
0
mirror of https://github.com/actix/actix-website synced 2025-01-23 00:25:55 +01:00

Updated SSL section with notes to create certs.

This commit is contained in:
Cameron Dershem 2019-06-18 17:29:54 -04:00
parent e20f6d9d56
commit d42c8ee4a2

View File

@ -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