Skip to content

Instantly share code, notes, and snippets.

@khosrow
Last active April 6, 2018 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khosrow/74901e58c6564587eaafbe53374422dd to your computer and use it in GitHub Desktop.
Save khosrow/74901e58c6564587eaafbe53374422dd to your computer and use it in GitHub Desktop.
Tests existence of Amazon Root CA on host machine using python
from __future__ import print_function
import urllib
if __name__ == "__main__":
print("Verifying Amazon CA ... ", end="")
try:
urllib.urlopen("https://aws.amazon.com")
print("OK")
except Exception as e:
print("FAILED")
print("%s" % e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment