Quick hack to use the letsencrypt DNS challenge with dnsimple.
Now using dnsimple api v2.
Requires ruby 2.4.
$ gem install bundler
$ bundle install
$ DNSIMPLE_ACCESS_TOKEN=... \
NAMES=foo.org,www/foo.org \
ACME_CONTACT=you@foo.org \
bundle exec ruby main.rb
.pem
files will be written to files named after the value of NAMES
:
foo.org-fullchain.pem
foo.org-privkey.pem
Check out https://github.com/meskyanichi/dockerized-letsencrypt-dnsimple which wraps this in a Docker container so a ruby install is not needed.
Comes from the environment.
DNSIMPLE_ACCESS_TOKEN
: get this access token from https://dnsimple.com/userNAMES
: a,
-separated list of names that will be in the requested cert. Use/
instead of.
to denote the separation between subdomain and dnsimple domain. For example, to request a cert forwww.example.net
, whereexample.net
is the domain dnsimple knows about, you'd usewww/example.net
.ACME_CONTACT
: the contact to use for registrationLETSENCRYPT_ENDPOINT
: optional, defaults to the production endpoint athttps://acme-v01.api.letsencrypt.org/