开发者

Documentation for a client/server program with OpenSSL

开发者 https://www.devze.com 2022-12-23 01:53 出处:网络
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...

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号