diff --git a/README.md b/README.md index cd46f5b..7032f9f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ All you have to do is start the webserver and then visit it at its domain name. * Let's Encrypt v1 (aka v01) * Let's Encrypt v2 (aka v02 or ACME draft 11) * ACME draft 11 (ACME v2 is a misnomer) +* Wildcard domains!! (via dns-01 challenges) + * `*.example.com` Install ======= diff --git a/examples/simple.js b/examples/simple.js index 715f9fa..2794d82 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -3,18 +3,31 @@ //require('greenlock-express') require('../').create({ - server: 'staging' + // Let's Encrypt v2 is ACME draft 11 + version: 'draft-11' + // You MUST change 'acme-staging-v02' to 'acme-v02' in production +, server: 'https://acme-staging-v02.api.letsencrypt.org/directory' // staging + + // You MUST change this to a valid email address , email: 'john.doe@example.com' + // You MUST NOT build clients that accept the ToS without asking the user , agreeTos: true -, approvedDomains: [ 'example.com', 'www.example.com' ] + // You MUST change these to valid domains + // NOTE: all domains will validated and listed on the certificate +, approveDomains: [ 'example.com', 'www.example.com' ] + + // You MUST have access to write to directory where certs are saved + // ex: /home/foouser/acme/etc +, configDir: require('path').join(require('os').homedir(), 'acme', 'etc') , app: require('express')().use('/', function (req, res) { - res.end('Hello, World!'); + res.setHeader('Content-Type', 'text/html; charset=utf-8') + res.end('Hello, World!\n\nšŸ’š šŸ”’.js'); }) -, debug: true +//, debug: true }).listen(80, 443); diff --git a/package.json b/package.json index bd57799..7a3c28a 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "example": "examples" }, "dependencies": { - "le-challenge-fs": "^2.0.4", - "le-sni-auto": "^2.0.1", - "le-store-certbot": "^2.0.3", "greenlock": "^2.2.3", + "le-challenge-fs": "^2.0.8", + "le-sni-auto": "^2.1.4", + "le-store-certbot": "^2.0.5", "localhost.daplie.me-certificates": "^1.2.3", - "redirect-https": "^1.1.0" + "redirect-https": "^1.1.5" }, "devDependencies": {}, "scripts": {