Pages

How to test SSL connectivity from the command line?



OpenSSL provides Secure Sockets Layer functionality for most general SSL requets.

To test the secure connections to a server, the openssl executable can be called directly using its s_client command

# openssl s_client -connect <hostname>:<port>

The conventional port for SSL HTTP connections is 443. Once the connection is made, standard HTTP requests can be typed in manually, and their output will be displayed on the terminal.This command can be used to test not only webservers (https), but smtps, imaps, and ftps connections.Another tool to test the SSL connection is curl
 

No comments:

Post a Comment