summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-1
blob: b387fb3f72a7112025862f7ea67d0895b4a04ce6 (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 [ "$#" -lt 1 ]; then
  echo >&2 "Usage: $0 <fqdn> [..<san> ..]"
  exit 1
fi

cn="$1"
shift

new-key "$cn"
new-csr "$cn" "$@"
make-combined-crt "$cn"
echo "Enable vhost and "
echo " service apache2 reload"