Server - Client mMTLS Handshake
- Give permissions to
generate_certs.sh
chmod +x generate_certs.sh- Run the script to generate the certificates. Enter all prompted fields.
./generate_certs.sh- Run the server
cargo run -- server- Run the client;
cargo run -- clientOn successful run, the client will send an aqua JSON object and the server will respond with the same and both will print the simple JSON object.
Sample output
# Server
Received JSON: AquaJson { data: "Hello, Aqua-Chains!" }
# Client
Received:
AquaJson { data: "Hello, Aqua-Chains!" }To run tests;
cargo test