Merge branch 'upstream' into debian
[shibboleth/sp.git] / configs / keygen.sh
index 44caa2e..cd53c9e 100755 (executable)
@@ -72,5 +72,8 @@ else
     openssl req -config sp-cert.cnf -new -x509 -days $DAYS -keyout sp-key.pem -out sp-cert.pem 2> /dev/null
 fi
 
-chmod 600 sp-key.pem
 rm sp-cert.cnf
+
+if  [ -s sp-key.pem ] ; then
+    chmod 600 sp-key.pem
+fi