Skip to content

RuvimP05/tcp-serverclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic TCP server:

  • multithreaded
  • key authentication
  • TLS encryption
  • server logs all messages to console
  • Client sends message, server recieves and sends back message as response
  • username functionality
  • highly customizable to suit basic needs

build commands: (select between client or server)

cargo build --bin <client/server> --release

how to use:

create a file called key, and type in any key you'd like into it, and distribute it to the server binary directory, and all the clients' binary directories

./client <IP.ADDR:PORT> (server is hardcoded to port 6969)
./server

Certificates are included (VALID UNTIL 1/7/2025. CN is RuvimP05, Passkey is 1234567890), but if you want to make your own, here are the commands:

openssl req -x509 -newkey rsa:2048 -keyout private_key.pem -out cert.pem -days 365
openssl pkcs12 -export -out certificate.p12 -inkey private_key.pem -in cert.pem

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages