Created
April 23, 2016 02:08
-
-
Save danrossi/806b39fa13d8ebbca2fc46ab9bd5f854 to your computer and use it in GitHub Desktop.
Lets Encrypt Renew Script For Cloudfront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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