update comments

This commit is contained in:
AJ ONeal 2016-08-01 21:47:48 -04:00
parent 761202ae8e
commit b5b516a131
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ LeCore.registerNewAccount(options, cb) // returns "regr" registration dat
}
// Registration
LeCore.getCertificate(options, cb) // returns (err, pems={ key, cert, ca })
LeCore.getCertificate(options, cb) // returns (err, pems={ privkey (key), cert, chain (ca) })
{ newAuthzUrl: '<url>' // specify acmeUrls.newAuthz
, newCertUrl: '<url>' // specify acmeUrls.newCert

View File

@ -22,6 +22,7 @@ module.exports.create = function (deps) {
var Acme = deps.Acme;
var RSA = deps.RSA;
// getCertificate // returns "pems", meaning "certs"
function getCert(options, cb) {
function bodyToError(res, body) {