diff options
-rwxr-xr-x | letsencrypt-helpers/vhost-step-1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/letsencrypt-helpers/vhost-step-1 b/letsencrypt-helpers/vhost-step-1 index cbe850a..b387fb3 100755 --- a/letsencrypt-helpers/vhost-step-1 +++ b/letsencrypt-helpers/vhost-step-1 @@ -3,8 +3,8 @@ set -e set -u -if [ "$#" != 1 ]; then - echo >&2 "Usage: $0 <fqdn>" +if [ "$#" -lt 1 ]; then + echo >&2 "Usage: $0 <fqdn> [..<san> ..]" exit 1 fi @@ -12,7 +12,7 @@ cn="$1" shift new-key "$cn" -new-csr "$cn" +new-csr "$cn" "$@" make-combined-crt "$cn" echo "Enable vhost and " echo " service apache2 reload" |