diff --git a/misc/CA.sh b/misc/CA.sh index 331ba771..d942e0bf 100755 --- a/misc/CA.sh +++ b/misc/CA.sh @@ -36,6 +36,7 @@ case $1 in mkdir -p ${TOP_DIR}/crl mkdir -p ${TOP_DIR}/newcerts mkdir -p ${TOP_DIR}/private + mkdir -p ${TOP_DIR}/pkcs touch ${TOP_DIR}/index.txt ESCAPED=$(echo "${TOP_DIR}" | sed 's/[\/\.]/\\&/g') @@ -123,7 +124,7 @@ case $1 in fi # echo -e "${GREEN}Export the Client files to pkcs12${COLOR_RST}" openssl pkcs12 -export -inkey ${2}.key -in ${2}.crt -name ${2} \ - -passin pass:$pass -out ${2}.p12 -passout pass:$pass + -passin pass:$pass -out ${TOP_DIR}/pkcs/${2}.p12 -passout pass:$pass if [ $? -ne 0 ]; then echo -e "${RED}pkcs12 export failed${COLOR_RST} for $2" exit 4