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
|
[`mkcert`]: https://github.com/FiloSottile/mkcert
|
||||||
|
|
||||||
### server
|
### Running the Example Server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd examples/rustls
|
cd security/rustls
|
||||||
cargo run (or ``cargo watch -x run``)
|
cargo run
|
||||||
# Started http server: 127.0.0.1:8443
|
# 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
|
### web client
|
||||||
|
|
||||||
- curl: ``curl -v https://127.0.0.1:8443/index.html --compressed -k``
|
- curl: ``curl -v https://127.0.0.1:8443/index.html --compressed -k``
|
||||||
|
Loading…
Reference in New Issue
Block a user