aboutsummaryrefslogtreecommitdiffstats
path: root/create-ssl-certificate
diff options
context:
space:
mode:
Diffstat (limited to 'create-ssl-certificate')
-rwxr-xr-xcreate-ssl-certificate2
1 files changed, 1 insertions, 1 deletions
diff --git a/create-ssl-certificate b/create-ssl-certificate
index 2d4c471..954f187 100755
--- a/create-ssl-certificate
+++ b/create-ssl-certificate
@@ -19,7 +19,7 @@ if [ -z "$pkg" -o -z "$num" -o -z "$srv" ]; then
exit 1
fi
-if [ $num = 1 ]; then
+if [ ! -f /etc/pki/tls/private/$srv.pem ]; then
# default values
host=$(hostname)
KEY_LENGTH=1024