Hubba's Blog

Notes from a Linux/Unix Engineer

What version of SSL/TLS does my openssl support?

Posted on Mon, Mar 23, 2026 at 10:39 by Hubertus A. Haniel

This one I always have to look up as I don't use openssl very often and some people say that this is the solution:

                openssl ciphers -v | awk '{print $2}' | sort -u

This is not actually correct as the second column list the minimum version for a cipher. - The way you can get it from the command line is using the help section from s_client with something like:

               openssl s_client -help 2>&1  > /dev/null | egrep "\-(ssl|tls)[^a-z]"
  

Now the client can also be used to explore a remote web server to see what versions it supports with:

               openssl s_client -connect {domain}:443 -servername {domain} -tls{version}





Edited on: Mon, Mar 23, 2026 11:44

Posted in HowTo (RSS), System - Linux (RSS)