Skip to content

Module for use with node-letsencrypt to generate certificates to satisfy tls-sni-01 and tls-sni-02 ACME challenges.

License

Notifications You must be signed in to change notification settings

insightfuls/le-tls-sni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Module for use with node-letsencrypt to generate certificates to satisfy tls-sni-01 and tls-sni-02 ACME challenges.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published