Issue v3 certificate with --ssl
This commit is contained in:
parent
9201b62f18
commit
659383bf30
|
@ -794,6 +794,8 @@ class ServeFile():
|
||||||
req.sign(pkey, "sha1")
|
req.sign(pkey, "sha1")
|
||||||
|
|
||||||
cert = crypto.X509()
|
cert = crypto.X509()
|
||||||
|
# Mozilla only accepts v3 certificates with v3 extensions, not v1
|
||||||
|
cert.set_version(0x2)
|
||||||
# some browsers complain if they see a cert from the same authority
|
# some browsers complain if they see a cert from the same authority
|
||||||
# with the same serial ==> we just use the seconds as serial.
|
# with the same serial ==> we just use the seconds as serial.
|
||||||
cert.set_serial_number(int(time.time()))
|
cert.set_serial_number(int(time.time()))
|
||||||
|
|
Loading…
Reference in New Issue