From 77286c8c260d443fe02387ad38f9d6fcc1266429 Mon Sep 17 00:00:00 2001 From: Bryson Hill Date: Tue, 15 Dec 2015 22:03:02 -0800 Subject: [PATCH] Update README.md Updating Discovery URL and fixing documentation for registerNewAccount --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 662847e..4c53a1c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The Goodies ```javascript // Accounts -LeCore.registerNewAccount(options, cb) // returns (err, acmeUrls={newReg,newAuthz,newCert,revokeCert}) +LeCore.registerNewAccount(options, cb) // returns "regr" registration data { newRegUrl: '' // no defaults, specify acmeUrls.newAuthz , email: '' // valid email (server checks MX records) @@ -61,6 +61,9 @@ LeCore.getCertificate(options, cb) // returns (err, pems={ key, cert, , setChallenge: fn (hostname, key, val, cb) , removeChallenge: fn (hostname, key, cb) } + +// Discovery URLs +LeCore.getAcmeUrls(acmeDiscoveryUrl, cb) // returns (err, acmeUrls={newReg,newAuthz,newCert,revokeCert}) ``` Helpers & Stuff