1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

docs: improve rustls example (#446)

This commit is contained in:
Eli Flanagan 2021-08-24 10:19:43 -04:00 committed by GitHub
parent 516faf22db
commit d3543e5413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,14 +26,17 @@ let mut keys = rsa_private_keys(key_file).unwrap(); // rsa
[`mkcert`]: https://github.com/FiloSottile/mkcert
### server
### Running the Example Server
```bash
cd examples/rustls
cargo run (or ``cargo watch -x run``)
cd security/rustls
cargo run
# Started http server: 127.0.0.1:8443
```
If you prefer reloading you can substitute `cargo watch -x run`.
That requires you install the `cargo-watch` crate.
### web client
- curl: ``curl -v https://127.0.0.1:8443/index.html --compressed -k``