git clone https://github.com/samiyonas/tcpchat
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes \
-subj "/C=US/ST=State/L=City/O=Organization/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
cargo build --release
./target/release/chat
openssl s_client -connect 127.0.0.1:6969 -quiet
openssl s_client -connect 127.0.0.1:6969 -quiet
you can now chat between terminal 2 and terminal 3