Skip to content

A strategy for node-letsencrypt for setting, retrieving, and clearing ACME challenges by registering self-signed certs with the SNI handler.

License

Notifications You must be signed in to change notification settings

insightfuls/le-challenge-sni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

le-challenge-sni

A strategy for node-letsencrypt for setting, retrieving, and clearing ACME challenges by registering self-signed certs with the SNI handler.

It is designed to handle tls-sni-01 and tls-sni-02 challenges.

Install

npm install --save [email protected]

Usage

var leChallenge = require('le-challenge-sni').create({
  debug: false
});

var LE = require('letsencrypt');

LE.create({
  server: LE.stagingServerUrl
, challengeType: "tls-sni-01"
, challenge: leChallenge
});

le-challenge-sni requires the sni option to letsencrypt to have cacheCerts and uncacheCerts methods. These are used to register/unregister the certificates. The default le-sni-auto instance satisfies this requirement.

It also requires the challengeType option to letsencrypt to be either tls-sni-01 or tls-sni-02 and will generate and register certificates accordingly.

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 user supplied options, if any (no effect)

About

A strategy for node-letsencrypt for setting, retrieving, and clearing ACME challenges by registering self-signed certs with the SNI handler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published