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 389B

12345678910111213141516171819202122
  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. if [ "${host}" = "" ]
  10. then
  11. echo "No domain" >&2
  12. exit 1
  13. fi &&
  14. leDir="${dir}/tests/etc/letsencrypt/live/${host}"
  15. mkdir -p "${leDir}" &&
  16. scp serv3:/etc/letsencrypt/live/${host}/* tests/etc/letsencrypt/live/${host}/