Skip to content

Instantly share code, notes, and snippets.

@schwabix
Created March 20, 2025 10:00
Show Gist options
  • Select an option

  • Save schwabix/6a2d3516a3e8fdeded5fef143ba36f09 to your computer and use it in GitHub Desktop.

Select an option

Save schwabix/6a2d3516a3e8fdeded5fef143ba36f09 to your computer and use it in GitHub Desktop.
Verify supported TLS cyphers
ENDPOINT=example.com:443
# test all ciphers on all protocols
for v in ssl2 ssl3 tls1 tls1_1 tls1_2 tls1_3; do
for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do
openssl s_client -connect "$ENDPOINT" \
-cipher $c -$v < /dev/null > /dev/null 2>&1 &&
echo -e "$v:\t$c"
done
done
# list all cipher/protocol combinations supported by the openssl client
openssl ciphers -v
# print unique list of protocols supported
openssl ciphers -v | awk '{print $2}' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment