Skip to content

Instantly share code, notes, and snippets.

Created January 3, 2018 03:56
  • Star 28 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save radiofrequency/4db5e731194b0ca3e1f0a573063b3220 to your computer and use it in GitHub Desktop.
Import lets encrypt cert to aws certificate manager in renew hook
#place in /etc/letsencrypt/renewal-hooks/post
#certs must be in us-east-1 to use with cloudfront
export AWS_DEFAULT_REGION=us-east-1
#run without --certificate-arn first time then specify arn for updates
aws acm import-certificate --certificate file:///etc/letsencrypt/live/ --private-key file:///etc/letsencrypt/live/ --certificate-chain file:///etc/letsencrypt/live/ --certificate-arn specifyarnforupdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment