add CA extensions to make valid CA certs
authorJoni Hahkala <joni.hahkala@cern.ch>
Wed, 11 Nov 2009 17:51:14 +0000 (17:51 +0000)
committerJoni Hahkala <joni.hahkala@cern.ch>
Wed, 11 Nov 2009 17:51:14 +0000 (17:51 +0000)
bin/generate-ca-certificates-for-cvs.sh

index 3a2ed66..b4ba975 100755 (executable)
@@ -45,7 +45,7 @@ function create_ca {
 
         export CN="the $catype CA"
         openssl req -new -x509 -out ${catype}.cert $DAYS -nodes \
-            -keyout ${catype}.priv -config req_conf.cnf 
+            -keyout ${catype}.priv -config req_conf.cnf -extensions CA_cert
         openssl pkcs12 -export -in ${catype}.cert -inkey ${catype}.priv \
             -out ${catype}.p12 -passin "pass:$PASSWORD" -passout "pass:$PASSWORD"
         echo -n "Generated CA certificate with "