An etcd-based strategy for node-greenlock for setting, retrieving, and clearing ACME challenges issued by the ACME server.
This module saves ACME challenge in etcd as specified by
and removes it once the challenge has either completed or failed.
- Safe to use with node cluster
- Safe to use with ephemeral services (EvenNode, Heroku, etc.)
npm install --save le-challenge-etcd
letEtcd =etcd = 'localhost';let leChallenge =;let LE = ;LE;
NOTE: If you request a certificate with 6 domains listed, it will require 6 individual challenges.
For ACME Challenge:
set(opts, domain, key, val, done)
get(defaults, domain, key, done)
remove(defaults, domain, key, done)
For node-letsencrypt internals:
getOptions()returns the internal defaults merged with the user-supplied options
loopback(defaults, domain, key, value, done)test, by external means, that the ACME server's challenge server will succeed