Skip to content

samiyonas/tcpchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clone

git clone https://github.com/samiyonas/tcpchat

create self signed certificate and secret key for secure communication using tls protocol

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"

compile

cargo build --release

run

terminal 1

./target/release/chat

terminal 2

openssl s_client -connect 127.0.0.1:6969 -quiet

terminal 3

openssl s_client -connect 127.0.0.1:6969 -quiet

you can now chat between terminal 2 and terminal 3

About

single server multiple client tcp chat in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages