Skip to content
0:00 / 0:00

#greenlock#letsencrypt#express

Free SSL with Greenlock v2 (Let's Encrypt for Node.js) - Part 1 (QuickStart)

AJ ONeal

5.2K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by AJ ONeal
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

22K views8 years ago1 recommendation

Web developmentSecurityNode.js, Deno and BunCryptographyHTTP, REST and GraphQL

AJ ONeal demonstrates how to set up free, automated SSL certificates in Express.js using Greenlock and Let's Encrypt.

Updated Greenlock Express v4: git.rootprojects.org/root/greenlock-express.js.git Part 1: Express.js QuickStart Code: git.coolaj86.com/coolaj86/greenlock-express.js * Part 2: youtube.com/watch?v=bTEn93gxY50&list=PLZaEVINf2Bq_lrS-OOzTUJ… * Part 3: youtube.com/watch?v=aZgVqPzoZTY&list=PLZaEVINf2Bq_lrS-OOzTUJ… - Intro - What is it, how does it work, Who would want to use it - Demonstrating QuickStart Example - Troubleshooting / Gotchas Get the code at git.coolaj86.com/coolaj86/greenlock-express.js Follow on Twitter: @GreenlockHTTPS

Why it's here

1 person recommends this

What people say. Recommended as an easy way to enable automated HTTPS and SSL certificate renewal in Express.js applications.

root-ajon Stack Overflow • Recommends

On “Enabling HTTPS on express.js”

Use greenlock-express: Free SSL, Automated HTTPS Greenlock handles certificate issuance and renewal (via Let's Encrypt) and http => https redirection, out-of-the box. express-app.js : var express = require('express'); var app = express(); app.use('/', function (req, res) { res.send({ msg: "Hello, Encrypted World!" }) }); // DO NOT DO app.listen() // Instead export your app: module.exports = app; server.js : require('greenlock-express').create({ // Let's Encrypt v2 is ACME draft 11 version: 'draft-11' , server: 'https://acme-v02.api.letsencrypt.org/directory' // You MUST change these to valid email and domains , email: 'john.doe@example.com' , approveDomains: [ 'example.co…