Skip to content

kavinsharma/Encrypted-Chat-server-IN-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Encrypted-Chat-Server-IN-C

Establish a encrypted connection between client and server in C using OpenSSL

First Of All Install OpenSSL

OpenSSL Guide: https://help.ubuntu.com/community/OpenSSL

Now Create A Certificate File "mycert.pem" the Name of the certificate:

Command Line : openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem

Compile Server:

Command Line : gcc -Wall -o ssl-server ssl-server.c -L/usr/lib -lssl -lcrypto

Run Server : Command Line : sudo ./ssl-server || Ex: sudo ./ssl-server 6000

Compile Client : Command Line : gcc -Wall -o ssl-client ssl-client.c -L/usr/lib -lssl -lcrypto

Run Client : Command Line : ./ssl-client || ./ssl-client 192.168.43.54 6000

About

Establish a encrypted connection between client and server in C using OpenSSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages