1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

improve server docs

This commit is contained in:
Rob Ede
2022-04-07 16:52:12 +01:00
parent 7d988fc27e
commit dde397f5f4
3 changed files with 11 additions and 12 deletions

View File

@ -8,7 +8,7 @@ async fn index(_req: HttpRequest) -> impl Responder {
#[actix_web::main]
async fn main() -> std::io::Result<()> {
// load ssl keys
// load TLS 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();

View File

@ -11,7 +11,7 @@ async fn index(_req: HttpRequest) -> impl Responder {
#[actix_web::main]
async fn main() -> std::io::Result<()> {
// load ssl keys
// load TLS 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();