diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-14 22:48:43 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-14 23:31:37 +0100 |
commit | a12c3d3f8ea255dd03bb7e993fa85eb00f47ab29 (patch) | |
tree | 82595e20d3fbbbb568de9178b7645a40fb7b0923 /test/helper_tools/getcert | |
parent | 04748e6f3f654733afafea3701d4ed03b08b8167 (diff) | |
download | mitmproxy-a12c3d3f8ea255dd03bb7e993fa85eb00f47ab29.tar.gz mitmproxy-a12c3d3f8ea255dd03bb7e993fa85eb00f47ab29.tar.bz2 mitmproxy-a12c3d3f8ea255dd03bb7e993fa85eb00f47ab29.zip |
restructure and move test files
add empty test files to satisfy linter
Diffstat (limited to 'test/helper_tools/getcert')
-rw-r--r-- | test/helper_tools/getcert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/helper_tools/getcert b/test/helper_tools/getcert new file mode 100644 index 00000000..43ebf11d --- /dev/null +++ b/test/helper_tools/getcert @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import sys +sys.path.insert(0, "../..") +import socket +import tempfile +import ssl +import subprocess + +addr = socket.gethostbyname(sys.argv[1]) +print(ssl.get_server_certificate((addr, 443))) |