Zenet
Zenet

Reputation: 7401

Documentation for a client/server program with OpenSSL

I have a client/server program in TCP written in C, and I would like to secure the exchanged data with OpenSSL, it's quite new for me and I couldn't find examples on the net...

Could you point out some googd documentation on this matter please?

Thank you!

Upvotes: 3

Views: 1433

Answers (2)

user2788581
user2788581

Reputation: 35

Step1 create create a server certificate with:

openssl req -new -x509 -out server.pem -nodes -keyout privkey.pem -subj /CN=localhost

Step2 Run the Server

openssl s_server -www -ssl3 -cipher AES256-SHA -key privkey.pem

Step3 Test the Server

View the Live demo here

Upvotes: 2

Jay
Jay

Reputation: 24895

Check the below links. They should be helpful.

http://www.linuxjournal.com/article/4822

http://www.ibm.com/developerworks/linux/library/l-openssl.html

Also refer to http://www.openssl.org/docs/

Upvotes: 5

Related Questions