Skip to content

Instantly share code, notes, and snippets.

@rizwansaeed
Created December 18, 2018 06:54
Show Gist options
  • Save rizwansaeed/cc536bf66132e42af6e6e02309c7a19d to your computer and use it in GitHub Desktop.
Save rizwansaeed/cc536bf66132e42af6e6e02309c7a19d to your computer and use it in GitHub Desktop.
Python SSL check
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