Created
December 18, 2018 06:54
-
-
Save rizwansaeed/cc536bf66132e42af6e6e02309c7a19d to your computer and use it in GitHub Desktop.
Python SSL check
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
import requests | |
proxies = { | |
'http': 'http://', | |
'https': 'https://' | |
} | |
response = requests.get('https://www.howsmyssl.com/a/check', proxies=proxies) | |
result = response.json()['tls_version'] | |
print("TLS version = {}".format(result)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment