lester
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).