summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-1
blob: 1549d3b00b730be40cb383ddbdeeb7b99d572758 (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-apache-crt "$cn"
echo "Enable vhost and "
echo " service apache2 reload"