From 1dda164d0381161d3d0ad4e65199f6382aa2bf0d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 28 May 2015 12:18:56 +1200 Subject: [PATCH] Satisfy autobots. --- netlib/certutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlib/certutils.py b/netlib/certutils.py index 05408a0cd..abf1a28b8 100644 --- a/netlib/certutils.py +++ b/netlib/certutils.py @@ -42,7 +42,7 @@ def create_ca(o, cn, exp): cert.set_pubkey(key) cert.add_extensions([ OpenSSL.crypto.X509Extension( - "basicConstraints", + "basicConstraints", True, "CA:TRUE" ), @@ -155,6 +155,7 @@ class CertStore(object): """ Implements an in-memory certificate store. """ + def __init__(self, default_privatekey, default_ca, default_chain_file, dhparams): self.default_privatekey = default_privatekey self.default_ca = default_ca