From 75624ed9488e8db99c9a13a8583e885d8484c5d9 Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 20 Jan 2015 04:17:25 +0100 Subject: [PATCH] Some chmods to make the life easier. --- certgen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/certgen.sh b/certgen.sh index 4131eba..7fc33f3 100755 --- a/certgen.sh +++ b/certgen.sh @@ -23,6 +23,7 @@ while read cdline ; do fi mkdir "output/${certdata[1]}" + chmod o+x "output/${certdata[1]}" SUBJECT="${certdata[2]}CN=${certdata[1]}/" CERTGEN_DNS_ALT_NAMES=$(echo "DNS:${certdata[1]},${certdata[3]}" | sed -e 's/,/ DNS:/g') @@ -35,6 +36,8 @@ while read cdline ; do if [[ ${certdata[0]} == "CRT" ]] ; then openssl x509 -req -signkey "${certdata[1]}.key" -in "${certdata[1]}.csr" -out "${certdata[1]}.crt" -extensions v3_req -extfile /tmp/certgen.cnf \ -days 365 -sha512 &> /dev/null + chmod o+r "${certdata[1]}.crt" + echo -n "${certdata[1]} " >> "${MYPWD}/output/fpfile.txt" openssl x509 -in "${certdata[1]}.crt" -fingerprint -noout -sha512 >> "${MYPWD}/output/fpfile.txt" echo "" >> "${MYPWD}/output/fpfile.txt" -- 2.43.0