summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-1
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-01-07 16:13:22 +0100
committerPeter Palfrader <peter@palfrader.org>2016-01-07 16:13:22 +0100
commit766385be281169f31839839b0739494a26ef4e70 (patch)
tree1373e641355eeeb40f68a38cad1516f2a3979da3 /letsencrypt-helpers/vhost-step-1
parentaf9f47b92a7766c853d6cafb275a176c0789a144 (diff)
Support SANs in vhost-step-1
Diffstat (limited to 'letsencrypt-helpers/vhost-step-1')
-rwxr-xr-xletsencrypt-helpers/vhost-step-16
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"