Remove RelyingParty examples from compact files.
[shibboleth/cpp-sp.git] / configs / keygen.sh
index aa47b68..16234a1 100755 (executable)
@@ -60,10 +60,11 @@ subjectAltName=$ALTNAME
 subjectKeyIdentifier=hash
 EOF
 
+touch sp-key.pem
+chmod 600 sp-key.pem
 if [ -z "$BATCH" ] ; then
     openssl req -config sp-cert.cnf -new -x509 -days $DAYS -keyout sp-key.pem -out sp-cert.pem
 else
     openssl req -config sp-cert.cnf -new -x509 -days $DAYS -keyout sp-key.pem -out sp-cert.pem 2> /dev/null
 fi
-
 rm sp-cert.cnf