您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

fake-letsencrypt.sh 341B

123456789101112131415161718
  1. #! /usr/bin/env sh
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. host="${1}"
  4. if [ "${host}" = "error.com" ]
  5. then
  6. echo "Failed to get certificate" >&2
  7. exit 1
  8. fi
  9. leDir="${dir}/tests/etc/letsencypt/live/${host}"
  10. sleep 1
  11. mkdir -p "${leDir}"
  12. touch "${leDir}/cert.pem" "${leDir}/privkey.pem" "${leDir}/chain.pem"
  13. echo "Generation successful"