Skip to content

Instantly share code, notes, and snippets.

@danrossi
Created April 23, 2016 02:08
Show Gist options
  • Save danrossi/806b39fa13d8ebbca2fc46ab9bd5f854 to your computer and use it in GitHub Desktop.
Save danrossi/806b39fa13d8ebbca2fc46ab9bd5f854 to your computer and use it in GitHub Desktop.
Lets Encrypt Renew Script For Cloudfront
#!/bin/sh
AWS_ACCESS_KEY_ID="key" \
AWS_SECRET_ACCESS_KEY="key" \
letsencrypt \
--renew-by-default --text \
--agree-tos -a letsencrypt-s3front:auth \
--letsencrypt-s3front:auth-s3-bucket bucket-name \
--letsencrypt-s3front:auth-s3-region bucket-region \
-i letsencrypt-s3front:installer \
--letsencrypt-s3front:installer-cf-distribution-id cloudfront-dist-id \
-d cname-host-name
@danrossi
Copy link
Author

Schedule like

0 0 1 * * /path/scripts/renew.sh > /dev/null 2>&1
0 0 1 */4 * /path/scripts/renew_cloudfront_cert.sh 2>&1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment