Created
January 19, 2022 15:44
-
-
Save DDuarte/5f20936033b5a02f54b6d8040bd157fa to your computer and use it in GitHub Desktop.
TLS clients that do not support certain ciphers
This file contains 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
# https://www.ssllabs.com/ssltest/clients.html | |
import requests | |
SUPPORTED_CIPHERS = { | |
"TLS_AES_128_GCM_SHA256", | |
"TLS_AES_256_GCM_SHA384", | |
"TLS_CHACHA20_POLY1305_SHA256", | |
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", | |
"OLD_TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", | |
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", | |
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", | |
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | |
"OLD_TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", | |
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", | |
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" | |
} | |
clients = requests.get("https://api.ssllabs.com/api/v3/getClients").json() | |
for client in clients: | |
if all([cipher not in SUPPORTED_CIPHERS for cipher in client["suiteNames"]]): | |
print(client["name"], client["version"], client.get("platform", "")) |
Author
DDuarte
commented
Jan 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment