generate-certificate.sh 762 B

12345678
  1. #!/bin/bash
  2. PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
  3. #certbot certonly --cert-name instances --agree-tos --email admin@ut.mephi.ru --preferred-challenges=dns --expand --manual-public-ip-logging-ok -n --renew-by-default --manual --manual-auth-hook /root/bin/generate-certificate-auth-hook.sh --manual-cleanup-hook /root/bin/generate-certificate-cleanup-hook.sh $@
  4. certbot certonly --cert-name sites --agree-tos --email admin@ut.mephi.ru --preferred-challenges http --expand --manual-public-ip-logging-ok -n --renew-by-default --authenticator certbot-haproxy:haproxy-authenticator --installer certbot-haproxy:haproxy-installer $@
  5. cat /etc/letsencrypt/live/sites/{fullchain,privkey}.pem > /etc/letsencrypt/live/sites/haproxy.pem