Name: bedrock-letsencrypt
Owner: Digital Bazaar, Inc.
Description: A Bedrock module that automates the HTTPS certificate registration, setup, and renewal process.
Created: 2016-12-17 04:16:55.0
Updated: 2016-12-19 04:44:38.0
Pushed: 2017-04-05 02:34:12.0
Size: 24
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A Bedrock module that automates the HTTPS certificate registration, setup, and renewal process. This module adds automatic TLS Certificate setup and updating via the ACME protocol and the Let's Encrypt Certificate Authority.
install bedrock-letsencrypt bedrock bedrock-server bedrock-express
Create a basic Bedrock application server:
bedrock = require('bedrock');
config = require('bedrock').config;
odules
ire('bedrock-server');
ire('bedrock-express');
ire('bedrock-letsencrypt');
onfig
ig.server.port = 443;
ig.server.httpPort = 80;
ig.server.bindAddr = ['letsencrypt-1.example.com'];
ig.server.domain = 'letsencrypt-1.example.com';
ig.server.host = 'letsencrypt-1.example.com';
ig.server.baseUri = 'https://' + config.server.host;
ig.letsencrypt.domains = ['letsencrypt-1.example.com'];
ig.letsencrypt.email = 'admin@example.com';
ig.letsencrypt.redisOptions = {
: 1,
ssword: 'REDIS_PASSWORD'
etup landing page
ock.events.on('bedrock-express.configure.routes', function(app) {
p.get('/', function(req, res) {
res.send('Hello Bedrock, Let\'s Encrypt!');
;
ock.start();
Run the application above on any host with public access to the Web. You need to ensure that at least ports 80 and 443 are available on the public Internet because the Let's Encrypt servers will attempt to contact your host during the certificate issuance process.
For documentation on this module's configuration, see config.js.
You will need to setup a Redis server to store the accounts, keypairs, and certificates. More on Redis configuration options can be found in the Redis configuration options.
This module adds automatic TLS Certificate registration, setup, and renewal via the ACME protocol and the Let's Encrypt Certificate Authority. When the application server starts up, the following process occurs:
`bedrock.config.letsencrypt.domains
`.Registration, setup, and renewal occurs automatically. By default, certificates are valid for 90 days and the server will begin attempting to renew the certificate after 80 days. This process is automatic and the certificates are free. Hooray.