diff --git a/warcprox/mitmproxy.py b/warcprox/mitmproxy.py index 95d5b31..cfb86c9 100644 --- a/warcprox/mitmproxy.py +++ b/warcprox/mitmproxy.py @@ -64,6 +64,7 @@ import urlcanon import time import collections import cProfile +from urllib3.util.ssl_ import DEFAULT_CIPHERS class ProxyingRecorder(object): """ @@ -257,8 +258,10 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler): context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_NONE + context.ciphers = DEFAULT_CIPHERS self._remote_server_sock = context.wrap_socket( - self._remote_server_sock, server_hostname=self.hostname) + self._remote_server_sock, server_hostname=self.hostname, + ) except AttributeError: try: self._remote_server_sock = ssl.wrap_socket(