Documentation for a client/server program with OpenSSL
I have a client/server program in TCP written in C, and I would like to sec开发者_开发问答ure 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!
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/
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
精彩评论