cut and paste error making cers not include right CA info
authorDaniel Lowe <dlowe@itasoftware.com>
Wed, 25 Aug 2010 20:40:35 +0000 (16:40 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Wed, 25 Aug 2010 20:40:35 +0000 (16:40 -0400)
certmaster/certs.py

index 9367fed..b59a972 100644 (file)
@@ -144,7 +144,7 @@ def create_slave_certificate(csr, cakey, cacert, cadir, slave_cert_file=None):
     cert.set_version(2)
     xt = crypto.X509Extension('basicConstraints', False ,'CA:FALSE')
     # FIXME - add subjectkeyidentifier and authoritykeyidentifier extensions, too)    
-    cacert.add_extensions((xt,))
+    cert.add_extensions((xt,))
     cert.sign(cakey, 'sha1')
     if slave_cert_file:
         destfo = open(slave_cert_file, 'w')