Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

license

Create / Renew letsencrypt certificates using temporary Amazon EC2 / Digital Ocean machines

Steps

  • Make sure you have docker installed
  • Configure your domains / email at nginx/sites-enabled/site.conf
  • For AWS usage
    • Run EC2_AKEY=xxx EC2_SKEY=yyy EC2_VPCID=kkk ./renew.sh and follow the steps (like configuring DNS and etc)
  • For DO usage
    • Run DO_ATOKEN=xxx ./renew.sh digitalocean and follow the steps (like configuring DNS and etc)
  • Get the certificates privkey1.pem and fullchain1.pem.

Bonus round

You can also transfer the downloaded certificates to your site, there is an opinionated script upload_certs_on_nginx.

  • Make sure you have bound to your docker machine already (ex:eval "$(docker-machine --storage-path /usr/local/share/web/docker_machines/ env mysite)")
  • Double check the content of upload_certs_on_nginx, it assumes: container name, certificate path and others.

About

Use temporary Amazon EC2 / Digital Ocean cloud machines to get / renew letsencrypt certificates

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.