mitmproxy/test/helper_tools/getcert
Thomas Kriechbaumer a12c3d3f8e restructure and move test files
add empty test files to satisfy linter
2017-02-14 23:31:37 +01:00

11 lines
209 B
Python

#!/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)))