GitHunt
DA

Server - Client mMTLS Handshake

  1. Give permissions to generate_certs.sh
chmod +x generate_certs.sh
  1. Run the script to generate the certificates. Enter all prompted fields.
./generate_certs.sh
  1. Run the server
cargo run -- server
  1. Run the client;
cargo run -- client

On 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

Languages

Rust73.8%Shell26.2%

Contributors

Created May 27, 2024
Updated May 28, 2024