Browse Source

Issue v3 certificate with --ssl

tests
Sebastian Lohff 7 years ago
parent
commit
659383bf30
  1. 2
      servefile

2
servefile

@ -794,6 +794,8 @@ class ServeFile(): @@ -794,6 +794,8 @@ class ServeFile():
req.sign(pkey, "sha1")
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
# with the same serial ==> we just use the seconds as serial.
cert.set_serial_number(int(time.time()))

Loading…
Cancel
Save