mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
proxy: SSL version is 0-based not 1-based, set_version(2) for version 3!
This commit is contained in:
parent
48b1c78917
commit
aeb246466b
@ -59,7 +59,7 @@ class CertificateAuthority(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _make_cert(certname):
|
def _make_cert(certname):
|
||||||
cert = crypto.X509()
|
cert = crypto.X509()
|
||||||
cert.set_version(3)
|
cert.set_version(2)
|
||||||
cert.set_serial_number(random.randint(0, 2 ** 64 - 1))
|
cert.set_serial_number(random.randint(0, 2 ** 64 - 1))
|
||||||
cert.get_subject().CN = certname
|
cert.get_subject().CN = certname
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user