le-tls-sni
v0.1.4
Published
Module for use with node-letsencrypt to generate certificates to satisfy tls-sni-01 and tls-sni-02 ACME challenges.
Downloads
2,035
Maintainers
Readme
le-tls-sni
Module for use with node-letsencrypt to generate certificates to satisfy tls-sni-01 and tls-sni-02 ACME challenges.
It assumes n
is just 1 for tls-sni-01 challenges. Let's Encrypt's CA
boulder
omits n
and acts as if it were 1.
Install
npm install --save le-tls-sni
Usage
The API is the same as for the node-letsencrypt v2 challenge set method:
require('le-tls-sni').generate(opts, domain, key, val, done)
The done
callback will be called like:
done(null, {
, privkey: '<<privkey.pem>>'
, cert: '<<cert.pem>>'
, subject: 'x.y.invalid.acme'
, altnames: [ 'x.y.token.invalid.acme', 'x.y.ka.invalid.acme' ]
, issuedAt: 1470975565000
, expiresAt: 1478751565000
});
It will use opts.challengeType
to distinguish between tls-sni-01 and
tls-sni-02.