Fixed CA.sh path var
This commit is contained in:
parent
6f260045fa
commit
63d73bc601
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user