OpenSSL: Using OpenSSL to enumerate protocols and ciphers in use by web applications

While enabling HTTPS is a important step in securing your web application, it is critical that you also take steps to disable legacy protocols and low strength ciphers that can circumvent the very security you are attempting to implement.

As long as you have the latest version of openssl then you should be able to use a bash script like below (credit for this script goes here) to enumerate every matching protocol and cipher that a server is exposing:

#! /bin/bash

echo testing against $serverport

for v in ssl2 ssl3 tls1 tls1_1 tls1_2; do
for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do
openssl s_client -connect $serverport \
-cipher $c -$v < /dev/null > /dev/null 2>&1 && echo -e "$v:\t$c"

You would execute the script something like:

> chmod 755
> .\ 127.0.01:443

If you want to see all the ciphers being considered, then run the following:

> openssl version
> openssl ciphers -v

Now that you have a complete matching list of the protocols/ciphers, now you will need to determine which protocols (e.g. sslv3) and low-strength ciphers (e.g. RC4) you want to disable.  You can start research here, here, here, and here.

And realize that hardening a service goes beyond just TLS protocols and ciphers and expands into DHE key size, HTTP headers for strict transport security, secure cookies, and compression.  You can start research here.

Qualys SSL Labs online tester is the most common way of validating the overall score of your publicly exposed service.