Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/sh
  2. export PATH=/opt/bin:/opt/sbin:$PATH
  3. mount -o remount,rw /opt
  4. rm -f /tmp/root/acme.log
  5. /opt/etc/init.d/S80nginx stop
  6. acme.sh --renew --ca-path /opt/etc/ssl/certs --cert-home /opt/etc/ssl --home /opt/root/.acme --log /tmp/root/acme.log -d '*.DOMAIN.NET' --dns dns_aws --ecc
  7. acme.sh --install-cert --ca-path /opt/etc/ssl/certs --cert-home /opt/etc/ssl --home /opt/root/.acme --log /tmp/root/acme.log -d '*.DOMAIN.NET' --ecc \
  8. --cert-file '/opt/etc/ssl/pem/*.DOMAIN.NET/cert.pem' \
  9. --key-file '/opt/etc/ssl/pem/*.DOMAIN.NET/key.pem' \
  10. --fullchain-file '/opt/etc/ssl/pem/*.DOMAIN.NET/fullchain.pem'
  11. mount -o remount,ro /opt
  12. /opt/etc/init.d/S80nginx start
  13. BODY=$(cat /tmp/root/acme.log)
  14. echo -e "Subject: [dd-wrt] SSL Key Renewal Output\nContent-Type: text/plain; charset=utf-8\nMime-Version: 1.0\n\n$BODY\n\n" | msmtp -C /opt/etc/msmtprc USER@gmail.com
  15. exit 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement