From 659383bf30169c3a546ccc6d9ac6893a7348bca6 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Tue, 17 Mar 2015 23:38:46 +0100 Subject: [PATCH] Issue v3 certificate with --ssl --- servefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servefile b/servefile index fd82c3e..639b169 100755 --- a/servefile +++ b/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()))