From d9b5aa5a28e3c865b7cc2ff2ae8cf0757270ab56 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 00:17:33 -0800 Subject: [PATCH] but wait, there's more! --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9330353..0aeb614 100644 --- a/README.md +++ b/README.md @@ -157,9 +157,6 @@ Below you'll find a stripped-down example. You can see the full example in the e This is how you **register an ACME account** and **get an HTTPS certificate** -**But wait**, there's more! -See [example/letsencrypt.js](https://github.com/Daplie/letiny-core/blob/master/example/letsencrypt.js) - ```javascript 'use strict'; @@ -221,14 +218,14 @@ function runDemo() { } ``` +**But wait**, there's more! +See [example/letsencrypt.js](https://github.com/Daplie/letiny-core/blob/master/example/letsencrypt.js) + #### Run a Server on 80, 443, and 5001 (https/tls) That will fail unless you have a webserver running on 80 and 443 (or 5001) to respond to `/.well-known/acme-challenge/xxxxxxxx` with the proper token -**But wait**, there's more! -See [example/serve.js](https://github.com/Daplie/letiny-core/blob/master/example/serve.js) - ```javascript var https = require('https'); var http = require('http'); @@ -268,16 +265,13 @@ http.createServer(acmeResponder).listen(80, function () { }); ``` +**But wait**, there's more! +See [example/serve.js](https://github.com/Daplie/letiny-core/blob/master/example/serve.js) + #### Put some storage in place Finally, you need an implementation of `challengeStore`: -**But wait**, there's more! -See - -* [example/challenge-store.js](https://github.com/Daplie/letiny-core/blob/master/challenge-store.js) -* [example/cert-store.js](https://github.com/Daplie/letiny-core/blob/master/cert-store.js) - ```javascript var challengeCache = {}; var challengeStore = { @@ -310,6 +304,12 @@ var certStore = { }; ``` +**But wait**, there's more! +See + +* [example/challenge-store.js](https://github.com/Daplie/letiny-core/blob/master/challenge-store.js) +* [example/cert-store.js](https://github.com/Daplie/letiny-core/blob/master/cert-store.js) + ## Authors * ISRG