rustls-example
Go to file
2024-08-07 18:58:18 +09:00
certs Add: Cert README 2024-08-07 18:58:18 +09:00
src Modify: optimal 2024-08-06 17:48:17 +09:00
.gitignore Initialize Commit 2024-08-05 17:01:24 +09:00
Cargo.toml Add: Client binary, Add Feature: command line arguments parser 2024-08-06 13:47:11 +09:00
README.md Initialize Commit 2024-08-05 17:01:24 +09:00

TLS on Rust and PKI

How to Build

$ cargo build

Run TLS Server

$ cargo run --bin TcpExample certs/host/fullchain.pem certs/host/server.key

Run TLS Client

# EXEC_TARGET=client
$ EXEC_TARGET=allow_any_cert_client
$ cargo run --bin $EXEC_TARGET certs/rootca/rootCA.crt

Make rootCA Certificate

$ cd certs/rootca
# edit rootca.conf
$ ./bootstrap cert_name

Make ICA Certificate

$ cd certs/ica
# edit ica.conf
$ ./bootstrap cert_name

Make Server Certificate

$ cd certs/host
# edit host.conf
$ ./bootstrap cert_name