Project

lester

0.0
No commit activity in last 3 years
No release in over 3 years
Let's Encrypt certificate renewer for sites hosted on S3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

= 1.8.2
 Project Readme

lester

Build Status

Lester is a small tool for renewing certificates from Let's Encrypt (or any ACME-compatible server), for websites set up using S3 and CloudFront.

It uses S3 for storing certificates and expects that the private key for a registered account is available from S3. Server side encryption is enabled by default for all objects written by Lester, and it's possible to use KMS as well.

Installation

gem install lester --pre

There are also self-contained binary artifacts attached to each release on GitHub, for usage where a Ruby runtime isn't installed (for example AWS Lambda).

Usage

To get started and upload a local private key the following command can be used:

lester init --domain example.org \
            --storage-bucket example-org-backup \
            --private-key privkey.pem

To generate a new certificate, the simplest invocation of lester is the following:

lester new --domain example.org \
           --site-bucket example-org \
           --storage-bucket example-org-backup \
           --distribution-id ABCDEFGH

To enable server side encryption with KMS, specify -k / --kms-id with either a key ID or an alias:

lester new --domain example.org \
           --site-bucket example-org \
           --storage-bucket example-org-backup \
           --distribution-id ABCDEFGH \
           --kms-id alias/letsencrypt

It's also possible to use renew rather than new if preferable, the result will be the same.

Should be noted that even though only a single domain is passed to lester, it will actually include both the given domain and the www subdomain when requesting a new certificate.

See lester --help for information about other command-line parameters.

Copyright

© 2015 Mathias Söderberg, see LICENSE.txt (MIT).