ymkjp / elb_update_cert

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Shell 86.0%Language:Nginx 14.0%