Update README.md

Updating Discovery URL and fixing documentation for registerNewAccount
This commit is contained in:
Bryson Hill 2015-12-15 22:03:02 -08:00
parent b07f079360
commit 77286c8c26
1 changed files with 4 additions and 1 deletions

View File

@ -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: '<url>' // no defaults, specify acmeUrls.newAuthz
, email: '<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