Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 481 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 481 Bytes

hyper-rustls-example

Simple example of hyper-rustls

Run

Run as follows.

cargo run

Access to the server as follows.

curl -k https://localhost:3000/

Make self-signed certificates by yourself

You can make certificates as follows.

mkdir ssl_certs && cd ssl_certs && openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -sha256 -nodes --subj '/CN=localhost/' && cd -