From 7e72a34618836b1624da7aa25f0191d34dbb34d8 Mon Sep 17 00:00:00 2001 From: Someone Date: Thu, 5 Feb 2015 00:19:54 +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