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"