Obtains certificates from Let's Encrypt, using Lexicon to answer DNS-based challenges
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415
  1. #!/usr/bin/env bash
  2. interrupt() {
  3. echo
  4. echo "Caught ^C, exiting."
  5. exit 1
  6. }
  7. trap interrupt SIGINT
  8. while true; do
  9. /letsencrypt.sh --cron --cleanup --hook /lexicon.sh --challenge dns-01
  10. inotifywait --timeout 86400 /letsencrypt/domains.txt
  11. sleep 60
  12. done