Linux command line for ssl server?

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
+4
source share
2 answers

Fast SSL Client:

openssl s_client -connect <host>:<port>

SSL:

openssl s_server -accept <port> 
+2

, . , OpenSSL.

openssl s_client -host google.com -port 443
+1

All Articles