Fixed CA.sh path var

This commit is contained in:
nemunaire 2014-01-20 18:34:18 +01:00
parent 6f260045fa
commit 63d73bc601

View File

@ -172,6 +172,9 @@ case $1 in
echo "==============================================================" echo "=============================================================="
echo -e "${GREEN}Making the client key and csr of ${BOLD}${2}${END_BOLD}${COLOR_RST}" echo -e "${GREEN}Making the client key and csr of ${BOLD}${2}${END_BOLD}${COLOR_RST}"
ESCAPED=$(echo "${TOP_DIR}" | sed 's/[\/\.]/\\&/g')
sed -i "s/=.*#DIR/= ${ESCAPED} #DIR/" $OPENSSL_CONF
if ! [ -f ${TOP_DIR}/private/${CAKEY} ]; then if ! [ -f ${TOP_DIR}/private/${CAKEY} ]; then
echo -e "${RED}Can not found the CA's key${COLOR_RST}" echo -e "${RED}Can not found the CA's key${COLOR_RST}"
exit 2 exit 2