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.

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"