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:
parent
e20f6d9d56
commit
d42c8ee4a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user