le-challenge-apache
A strategy for node-letsencrypt that adds sites to an Apache web server to satisfy tls-sni-01 or tls-sni-02 challenges.
Install
npm install --save le-challenge-apache@2.x
Usage
var leChallenge = require.create; var LE = require; LE.create;
In the shell hooks above, and any alternative configuration file template provided, the following substitutions are available:
{{{token}}}
: the token{{{domain}}}
: the domain for which a certificate is being sought (beware of this if using multiple domains per certificate){{{subject}}}
: the domain for which the generated challenge-fulfilling certificate must be used (only available when generating it){{{cert}}}
: the path to the generated certificate:apachePath/token.crt
{{{privkey}}}
: the path to the generated private key:apachePath/token.key
{{{conf}}}
: the path to the generated config file:apachePath/token.conf
{{{bind}}}
: the value of theapacheBind
option{{{port}}}
: the value of theapachePort
option{{{webroot}}}
: the value of theapacheWebroot
option
Exposed Methods
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