updates
This commit is contained in:
parent
3a84548764
commit
af122fc375
15
README.md
15
README.md
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
A framework for building letsencrypt clients, forked from `letiny`.
|
A framework for building letsencrypt clients, forked from `letiny`.
|
||||||
|
|
||||||
* browser
|
|
||||||
* node with `forge` (works on windows)
|
|
||||||
* node with `ursa` (works fast)
|
* node with `ursa` (works fast)
|
||||||
|
* node with `forge` (works on windows)
|
||||||
|
* browser WebCrypto (not implemented, but on the TODO)
|
||||||
* any javascript implementation
|
* any javascript implementation
|
||||||
|
|
||||||
## Usage:
|
## Usage:
|
||||||
|
@ -13,6 +13,13 @@ A framework for building letsencrypt clients, forked from `letiny`.
|
||||||
npm install --save letiny-core
|
npm install --save letiny-core
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You will follow these steps to obtain certificates:
|
||||||
|
|
||||||
|
* discover ACME registration urls with `getAcmeUrls`
|
||||||
|
* register a user account with `registerNewAccount`
|
||||||
|
* implement a method to agree to the terms of service as `agreeToTos`
|
||||||
|
* get certificates with `getCertificate`
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -118,8 +125,8 @@ LeCore = LeCore.create({
|
||||||
});
|
});
|
||||||
|
|
||||||
// now uses node `request` (could also use jQuery or Angular in the browser)
|
// now uses node `request` (could also use jQuery or Angular in the browser)
|
||||||
LeCore.getAcmeUrls({
|
LeCore.getAcmeUrls(discoveryUrl, function (err, urls) {
|
||||||
se
|
console.log(urls);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue