diff --git a/lib/core.js b/lib/core.js index d24fc72..7472c95 100644 --- a/lib/core.js +++ b/lib/core.js @@ -136,7 +136,7 @@ function writeCertificateAsync(result, args, defaults, handlers) { , privkeyPath: privkeyPath // some ambiguity here... - , privkey: result.key || result.privkey + , privkey: result.key || result.privkey || args.domainPrivateKeyPem , fullchain: result.fullchain || result.cert , chain: result.ca || result.chain // especially this one... might be cert only, might be fullchain @@ -156,6 +156,8 @@ function getCertificateAsync(account, args, defaults, handlers) { } args.domainPrivateKeyPem = domainKey.privateKeyPem; + args.account = account; + //args.registration = domainKey; return LeCore.getCertificateAsync({ debug: args.debug