5.0.0 • Published 2 years ago

autocert v5.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

autocert

Get a TLS options object that will automagically certify your domains.

Why

Obligatory Let's Encrypt thingy.

How

acme-client

Example

var http = require('http')
var https = require('https')
var autocert = require('./')

var challenges = {}

http.createServer((req, res) => {
  var proof = challenges[req.url]
  if (proof) {
    res.end(proof)
  } else {
    res.statusCode = 404
    res.end('not found')
  }
}).listen(80)

https.createServer(autocert.tlsOpts({
  email: 'info@example.com',
  challenges,
}), (req, res) => {
  res.end('secure af')
}).listen(443)

License

MIT

5.0.0

2 years ago

4.0.0

3 years ago

3.0.0

6 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago