I always use the socket command line tool to quickly test sockets for the programs I write. http://w21.org/jnickelsen/socket/
I was wondering if there is a similar command line tool to set up a fast ssl socket client / server for verification.
Edit: simple answer
So, to make it easier for people who may be surprised at the same:
If you want to be a client, use openssl s_client:
openssl s_client -connect host:port
If you want to use openssl s_server server:
openssl s_server -accept <port> -key <keyfile> -cert <certfile>
A quick and dirty certificate and a key for use by the server for testing:
openssl req -x509 -nodes -days 365 -newkey rsa -keyout keyfile.key -out certfile.crt
source
share