diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-01-07 16:13:22 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-01-07 16:13:22 +0100 |
commit | 766385be281169f31839839b0739494a26ef4e70 (patch) | |
tree | 1373e641355eeeb40f68a38cad1516f2a3979da3 | |
parent | af9f47b92a7766c853d6cafb275a176c0789a144 (diff) |
Support SANs in vhost-step-1
-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" |