A tweaked version of the tlscient-mio
and tlsserver-mio
examples from rustls
that supports serde
serialization
and sending of data.
Certificate generation
cargo build
Run the server
cargo run --bin tlsserver-mio -- --verbose --certs certs/end.fullchain --key certs/end.rsa -p 8443 echo
Run the client
echo hello world | cargo run --bin tlsclient-mio -- --verbose --cafile certs/ca.cert -p 8443 localhost