mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-28 13:22:38 +00:00
1516ca4fb6
This commit introduces TLS support, provided by `rustls` and a fork of `hyper-rustls`. TLS support is enabled via the `tls` feature and activated when the `tls` configuration parameter is set. A new `hello_tls` example illustrates its usage. This commit also introduces more robust and complete configuration settings via environment variables. In particular, quoted string, array, and table (dictionaries) based configuration parameters can now be set via environment variables. Resolves #28.
12 lines
478 B
TOML
12 lines
478 B
TOML
# The certificate/private key pair used here was generated via openssl:
|
|
#
|
|
# openssl req -x509 -newkey rsa:4096 -nodes -sha256 -days 3650 \
|
|
# -keyout key.pem -out cert.pem
|
|
#
|
|
# The certificate is self-signed. As such, you will need to trust it directly
|
|
# for your browser to refer to the connection as secure. You should NEVER use
|
|
# this certificate/key pair. It is here for DEMONSTRATION PURPOSES ONLY.
|
|
[global.tls]
|
|
certs = "private/cert.pem"
|
|
key = "private/key.pem"
|