暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

letsencrypt-gencert 439B

12345678910111213
  1. #!/bin/bash
  2. d="$1"
  3. for i in www mail autoconfig read news cloud git; 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