New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

andrao-https

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

andrao-https

letsencrypt-express wrapper

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

KeyDescriptionDefault
domainsCertificate domains[]
emailCertificate email address'me@example.com'
testingUse staging server URL (for development)false
http_portsHTTP server port(s)[80]
https_portsHTTPS server port(s)[443]
redirectAutomatic HTTP -> HTTPS redirecttrue

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

FAQs

Package last updated on 15 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts