We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4b4d3 commit 8092a89Copy full SHA for 8092a89
.gitignore
@@ -2,3 +2,4 @@
2
**/*.rs.bk
3
.DS_Store
4
/.idea
5
+/certs
README.md
@@ -47,7 +47,15 @@ cargo run --example client -- hsts.badssl.com
47
See [examples/server.rs](examples/server.rs). You can run it with:
48
49
```sh
50
-cargo run --example server -- 127.0.0.1:8000 --cert mycert.der --key mykey.der
+cargo run --example server -- 127.0.0.1:8000 --cert certs/cert.pem --key certs/cert.key.pem
51
+```
52
+
53
+If you don't have a certificate and key, you can generate a random key and
54
+self-signed certificate for testing with:
55
56
+```sh
57
+cargo install --locked rustls-cert-gen
58
+rustls-cert-gen --output certs/ --san localhost
59
```
60
61
### License & Origin
0 commit comments