https://github.com/nwtgck/hyper-rustls-example
Simple example of hyper-rustls
https://github.com/nwtgck/hyper-rustls-example
hyper hyper-rustls rust rustls ssl tls
Last synced: about 1 year ago
JSON representation
Simple example of hyper-rustls
- Host: GitHub
- URL: https://github.com/nwtgck/hyper-rustls-example
- Owner: nwtgck
- License: mit
- Created: 2020-08-24T12:30:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T14:48:42.000Z (almost 6 years ago)
- Last Synced: 2025-02-06T11:55:27.104Z (over 1 year ago)
- Topics: hyper, hyper-rustls, rust, rustls, ssl, tls
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hyper-rustls-example
Simple example of [hyper-rustls](https://github.com/ctz/hyper-rustls)
## Run
Run as follows.
```bash
cargo run
```
Access to the server as follows.
```bash
curl -k https://localhost:3000/
```
## Make self-signed certificates by yourself
You can make certificates as follows.
```bash
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 -
```