3
votes

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!

2

2 Answers

2
votes

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