Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.08 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.08 KB

SSLSocket

This is a proof of concept example using OpenSSL library to verfiy the certificate and key in server side.

Both client and server use AES-256-SHA encryption alogrithm to create SSL socket connections.

The server will echo the message which received from client and send it back to client.

Build OpenSSL Environment

On ubuntu/debian, type

  $[sudo] apt-get install openssl && apt-get install libssl-dev -y

or download the latest OpenSSL package at http://www.openssl.org/source/

Compile Source Code

 $ git clone https://github.com/a110605/sslsocket.git
 $ cd sslsocket 
 $ make

It will automatically build the executable binary sslserver && sslclient

Quick Run

Run the Server side on one terminal

sudo ./ssl-server <portnum>

Run the Client side on the other terminal

./ssl-client <hostname> <portnum>

Contact

Please contact me via the mail [email protected]

Thanks.