Permalink
Browse files

Refined checks for existing CA certificate

  • Loading branch information...
1 parent d34b292 commit 5b489ae5967b54f1759e18207ace4c3b17c0a2cf @CarbonLifeForm CarbonLifeForm committed Nov 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 CA.sh
View
@@ -124,7 +124,7 @@ case $1 in
read FILE
# ask user for existing CA certificate
- if [ "$FILE" ]; then
+ if [ "$FILE" -a -f $FILE -a -r $FILE ]; then
cp_pem $FILE ${CATOP}/private/$CAKEY PRIVATE
cp_pem $FILE ${CATOP}/$CACERT CERTIFICATE
RET=$?

0 comments on commit 5b489ae

Please sign in to comment.