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:
parent
516faf22db
commit
d3543e5413
@ -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``
|
||||
|
Loading…
Reference in New Issue
Block a user