This commit is contained in:
AJ ONeal 2015-12-16 00:58:36 +00:00
parent 3a84548764
commit af122fc375
1 changed files with 11 additions and 4 deletions

View File

@ -2,9 +2,9 @@
A framework for building letsencrypt clients, forked from `letiny`.
* browser
* node with `forge` (works on windows)
* node with `ursa` (works fast)
* node with `forge` (works on windows)
* browser WebCrypto (not implemented, but on the TODO)
* any javascript implementation
## Usage:
@ -13,6 +13,13 @@ A framework for building letsencrypt clients, forked from `letiny`.
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
'use strict';
@ -118,8 +125,8 @@ LeCore = LeCore.create({
});
// now uses node `request` (could also use jQuery or Angular in the browser)
LeCore.getAcmeUrls({
se
LeCore.getAcmeUrls(discoveryUrl, function (err, urls) {
console.log(urls);
});
```