From bb411d418be62301321afcf52c81d19466ae4689 Mon Sep 17 00:00:00 2001 From: Drew Warren Date: Wed, 25 Jan 2017 14:28:44 -0700 Subject: [PATCH] letsencrypt to greenlock --- README.md | 24 ++++++++++++------------ example.js | 4 ++-- index.js | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 219bee3..3bfab15 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ Tired of serving the Empire? Come join the Rebel Alliance: [![Join the chat at https://gitter.im/Daplie/letsencrypt-express](https://badges.gitter.im/Daplie/letsencrypt-express.svg)](https://gitter.im/Daplie/letsencrypt-express?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -| [letsencrypt (lib)](https://git.daplie.com/Daplie/node-greenlock) -| [letsencrypt-cli](https://git.daplie.com/Daplie/greenlock-cli) -| [letsencrypt-express](https://git.daplie.com/Daplie/greenlock-express) -| [letsencrypt-cluster](https://git.daplie.com/Daplie/greenlock-cluster) -| [letsencrypt-koa](https://git.daplie.com/Daplie/greenlock-koa) -| **letsencrypt-hapi** +| [greenlock (lib)](https://git.daplie.com/Daplie/node-greenlock) +| [greenlock-cli](https://git.daplie.com/Daplie/greenlock-cli) +| [greenlock-express](https://git.daplie.com/Daplie/greenlock-express) +| [greenlock-cluster](https://git.daplie.com/Daplie/greenlock-cluster) +| [greenlock-koa](https://git.daplie.com/Daplie/greenlock-koa) +| **greenlock-hapi** | Free SSL and Automatic HTTPS for node.js with hapi.js and other middleware systems via Let's Encrypt @@ -38,17 +38,17 @@ All you have to do is start the webserver and then visit it at it's domain name. ## Install ``` -npm install --save letsencrypt-express@2.x +npm install --save greenlock-express@2.x ``` -*Pay no attention to the man behind the curtain.* (just ignore that the name of the module is letsencrypt-express) +*Pay no attention to the man behind the curtain.* (just ignore that the name of the module is greenlock-express) -### Part 1: Configure LetsEncrypt +### Part 1: Configure Greenlock ```javascript 'use strict'; -var le = require('letsencrypt-express').create({ +var le = require('greenlock-express').create({ server: 'staging' // in production use https://acme-v01.api.letsencrypt.org/directory , configDir: require('os').homedir() + '/letsencrypt/etc' @@ -71,9 +71,9 @@ and/or blocked from the ACME server. Alternatively, You can run registration *manually*: ```bash -npm install -g letsencrypt-cli +npm install -g greenlock-cli -letsencrypt certonly --standalone \ +greenlock certonly --standalone \ --server 'https://acme-v01.api.letsencrypt.org/directory' \ --config-dir ~/letsencrypt/etc \ --agree-tos --domains example.com --email user@example.com diff --git a/example.js b/example.js index d40640b..58f39ca 100644 --- a/example.js +++ b/example.js @@ -2,7 +2,7 @@ // -// Configure LetsEncrypt +// Configure Greenlock // var leConfDir = require('os').homedir() + '/letsencrypt/etc'; @@ -11,7 +11,7 @@ throw new Error( + " Also, you'll need to remove .testing() and rm -rf '" + leConfDir + "'" + " to get actual, trusted production certificates."); -var le = require('letsencrypt-express').create({ +var le = require('greenlock-express').create({ server: 'staging' // in production use https://acme-v01.api.letsencrypt.org/directory , configDir: require('os').homedir() + '/letsencrypt/etc' diff --git a/index.js b/index.js index fabaa69..f5aa71c 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('letsencrypt-express'); \ No newline at end of file +module.exports = require('greenlock-express'); \ No newline at end of file