andrao-https
letsencrypt-express wrapper
Last updated 2 years ago by andrao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install andrao-https 
SYNC missed versions from official npm registry.

andrao-https

Letsencrypt SSL certificate renewal + http / https server initialization. letsencrypt-express wrapper.

Installation

npm install --save andrao-https

Usage

var servers = require('andrao-https')(app, {
    domains:        ['github.com', 'www.github.com']
  , email:          'user@example.com'
});

servers object contains native Node http and https listening at specified ports (default 80 for HTTP, 443 for HTTPS):

servers = {
    http:  [server@80]
    https: [server@443]
}

Options

Key Description Default
domains Certificate domains []
email Certificate email address 'me@example.com'
testing Use staging server URL (for development) false
http_ports HTTP server port(s) [80]
https_ports HTTPS server port(s) [443]
redirect Automatic HTTP -> HTTPS redirect true

Obtaining an SSL certificate via letsencrypt-cli

npm install -g letsencrypt-cli

For best results obtain cerificates individually for multiple domains, i.e. once for example.com, and once for www.example.com.

sudo letsencrypt certonly \
  --agree-tos true --debug true --duplicate true \
  --config-dir ~/letsencrypt/etc \
  --email me@example.com \
  --domains example.com \
  --tls-sni-01-port HTTPS_PORT \
  --http-01-port HTTP_PORT

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

16 Versions

  • 1.0.0                                ...           2 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 1
Last Month 8
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |