mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Merge pull request #67 from vbanos/update-ssl-ciphers
Use updated list of SSL ciphers
This commit is contained in:
commit
a6fa04bcae
@ -64,6 +64,7 @@ import urlcanon
|
|||||||
import time
|
import time
|
||||||
import collections
|
import collections
|
||||||
import cProfile
|
import cProfile
|
||||||
|
from urllib3.util.ssl_ import DEFAULT_CIPHERS
|
||||||
|
|
||||||
class ProxyingRecorder(object):
|
class ProxyingRecorder(object):
|
||||||
"""
|
"""
|
||||||
@ -257,6 +258,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
|
|||||||
context = ssl.create_default_context()
|
context = ssl.create_default_context()
|
||||||
context.check_hostname = False
|
context.check_hostname = False
|
||||||
context.verify_mode = ssl.CERT_NONE
|
context.verify_mode = ssl.CERT_NONE
|
||||||
|
context.ciphers = DEFAULT_CIPHERS
|
||||||
self._remote_server_sock = context.wrap_socket(
|
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:
|
except AttributeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user