but wait, there's more!

This commit is contained in:
AJ ONeal 2015-12-16 00:17:33 -08:00
parent abf436b2bb
commit d9b5aa5a28
1 changed files with 12 additions and 12 deletions

View File

@ -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