From af122fc375634fc2e495a5a010e18ee42b329455 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 00:58:36 +0000 Subject: [PATCH] updates --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c4a4d5..3cffabd 100644 --- a/README.md +++ b/README.md @@ -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); }); ```