Update README.md
This commit is contained in:
parent
289eaf9cf5
commit
94bea192db
|
@ -34,6 +34,8 @@ You will follow these steps to obtain certificates:
|
||||||
* implement a method to get the challenge token as `getChallenge`
|
* implement a method to get the challenge token as `getChallenge`
|
||||||
* implement a method to remove the challenge token as `removeChallenge`
|
* implement a method to remove the challenge token as `removeChallenge`
|
||||||
|
|
||||||
|
#### Register Account & Domain
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -85,6 +87,8 @@ LeCore.getAcmeUrls(
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 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)
|
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
|
to respond to `/.well-known/acme-challenge/xxxxxxxx` with the proper token
|
||||||
|
|
||||||
|
@ -107,6 +111,8 @@ http.createServer()
|
||||||
|
|
||||||
Finally, you need an implementation of `challengeStore`:
|
Finally, you need an implementation of `challengeStore`:
|
||||||
|
|
||||||
|
#### Put some storage in place
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var challengeCache = {};
|
var challengeCache = {};
|
||||||
var challengeStore = {
|
var challengeStore = {
|
||||||
|
|
Loading…
Reference in New Issue