/elb_update_cert

Fetch certification from Let's Encrypt → Upload to IAM → Set it up to ELB

Primary LanguageShellMIT LicenseMIT

elb_update_cert

Document

Setup Amazon Linux host

sudo yum update
sudo yum install -y git nginx libffi-devel puppet libffi-devel puppet httpd24 jq
sudo /etc/init.d/nginx start
sudo chkconfig nginx on

Execute

  1. Add AWS user as example.iam_policy.json
  2. Configure nginx as etc/nginx/nginx.conf and restart nginx
  3. Edit elb_update_cert.sh to modify __VALIABLES__ as yours
  4. Execute commands below and confirm everything fine
  5. Add cron job as etc/cron.d/elb_update_cert
git clone https://github.com/letsencrypt/letsencrypt /home/ec2-user/letsencrypt
sudo aws configure --profile elb_update_cert
sudo bash elb_update_cert.sh

cf. http://qiita.com/hidekuro/items/482520f220a305dc147b