Saturday, February 23, 2013

SSL clinent/server using openssl

Telnet is nice program that allows us to create a TCP socket connection with a server and then interact with the server on the terminal. This ofcourse does not work when the server uses SSL. That is where openssl comes to the rescue.

openssl s_client -connect

Similarly an SSL server can be cooked up instantaneously -

openssl genrsa 1024 > key
openssl req -new -x509 -nodes -sha1 -days 365 -key key > cert
openssl s_server -accept 12345 -cert cert -key key

No comments:

Post a Comment