https://bugs.internet2.edu/jira/browse/SSPCPP-106
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 1 Mar 2010 14:17:17 +0000 (14:17 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 1 Mar 2010 14:17:17 +0000 (14:17 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3231 cb58f699-b61c-0410-a6fe-9272a202ed29

configs/keygen.sh

index 5ae60db..a8cd80f 100755 (executable)
@@ -60,14 +60,10 @@ subjectAltName=$ALTNAME
 subjectKeyIdentifier=hash
 EOF
 
+umask 177
 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
-
-if  [ -s sp-key.pem ] ; then
-    chmod 600 sp-key.pem
-fi