summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-1
diff options
context:
space:
mode:
Diffstat (limited to 'letsencrypt-helpers/vhost-step-1')
-rwxr-xr-xletsencrypt-helpers/vhost-step-118
1 files changed, 18 insertions, 0 deletions
diff --git a/letsencrypt-helpers/vhost-step-1 b/letsencrypt-helpers/vhost-step-1
new file mode 100755
index 0000000..1549d3b
--- /dev/null
+++ b/letsencrypt-helpers/vhost-step-1
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+set -u
+
+if [ "$#" != 1 ]; then
+ echo >&2 "Usage: $0 <fqdn>"
+ exit 1
+fi
+
+cn="$1"
+shift
+
+new-key "$cn"
+new-csr "$cn"
+make-apache-crt "$cn"
+echo "Enable vhost and "
+echo " service apache2 reload"