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.

cert-renew-all.sh 325B

1234567891011121314151617181920212223
  1. #! /usr/bin/env sh
  2. if [ $# -ne 2 ]
  3. then
  4. name=$(basename "$0")
  5. echo "Usage: ${name} directory checkend" >&2
  6. exit 64
  7. fi
  8. dir="$1"
  9. checkend="$2"
  10. certs=$(cert-check "${dir}" "${checkend}")
  11. echo "${certs}"
  12. sites=$(echo "${certs}" | cut -d' ' -f1)
  13. for site in ${sites}
  14. do
  15. echo
  16. generate-ssl-cert "${site}"
  17. done