summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-1
blob: cbe850affd812c7a6d4b30b24658f9e46c3bb91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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-combined-crt "$cn"
echo "Enable vhost and "
echo " service apache2 reload"