Ingen beskrivning
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

letsencrypt-gencert 435B

12345678910111213
  1. #!/bin/bash
  2. d="$1"
  3. for i in www mail autoconfig read news cloud; do
  4. if (getent hosts $i.$1 > /dev/null); then
  5. d="$d,$i.$1";
  6. fi
  7. done
  8. # We are using the "standalone" letsencrypt plugin, which runs its own
  9. # webserver, so we need to temporarily free up the HTTP(S) ports by stopping
  10. # our own Apache.
  11. service apache2 stop
  12. /root/letsencrypt/letsencrypt-auto certonly -c /etc/letsencrypt/cli.conf --domains $d
  13. service apache2 start