Created
March 20, 2025 10:00
-
-
Save schwabix/6a2d3516a3e8fdeded5fef143ba36f09 to your computer and use it in GitHub Desktop.
Verify supported TLS cyphers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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