cant write privkey ERR_INVALID_ARG_TYPE #4

Open
opened 2020-05-27 20:01:51 +00:00 by Ghost · 0 comments

I am trying to renew my certs in a certonly webroot way and am getting following error with node14 installed on my system. Using debug I was able to get this trace.

acme-v2: order was finalized
acme-v2: csr submitted and cert received:
{
  expires: '2020-06-03T19:48:11Z',
  identifiers: [
    { type: 'dns', value: 'mydomain.com' },
  ],
  cert: '-----BEGIN CERTIFICATE-----\n' +
  ......
   '-----END CERTIFICATE-----\n',
  chain: '-----BEGIN CERTIFICATE-----\n' +
  ....
   '-----END CERTIFICATE-----\n',
}
[le-store-certbot] writeRenewalConfig privkeyPath /mycreds/letsencrypt/live/mydomain.com/privkey.pem
[Error]: greenlock-cli
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
    at writeFile (fs.js:1356:5)
    at internal/util.js:297:30
    at new Promise (<anonymous>)
    at writeFile (internal/util.js:296:12)
    at Object.stageAsync (/usr/lib/node_modules/greenlock-cli/node_modules/safe-replace/index.js:65:14)
    at Object.writeFileAsync (/usr/lib/node_modules/greenlock-cli/node_modules/safe-replace/index.js:57:18)
    at /usr/lib/node_modules/greenlock-cli/node_modules/le-store-certbot/index.js:285:19
I am trying to renew my certs in a `certonly` `webroot` way and am getting following error with node14 installed on my system. Using debug I was able to get this trace. ``` acme-v2: order was finalized acme-v2: csr submitted and cert received: { expires: '2020-06-03T19:48:11Z', identifiers: [ { type: 'dns', value: 'mydomain.com' }, ], cert: '-----BEGIN CERTIFICATE-----\n' + ...... '-----END CERTIFICATE-----\n', chain: '-----BEGIN CERTIFICATE-----\n' + .... '-----END CERTIFICATE-----\n', } [le-store-certbot] writeRenewalConfig privkeyPath /mycreds/letsencrypt/live/mydomain.com/privkey.pem [Error]: greenlock-cli TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined at writeFile (fs.js:1356:5) at internal/util.js:297:30 at new Promise (<anonymous>) at writeFile (internal/util.js:296:12) at Object.stageAsync (/usr/lib/node_modules/greenlock-cli/node_modules/safe-replace/index.js:65:14) at Object.writeFileAsync (/usr/lib/node_modules/greenlock-cli/node_modules/safe-replace/index.js:57:18) at /usr/lib/node_modules/greenlock-cli/node_modules/le-store-certbot/index.js:285:19 ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/greenlock-cli.js#4
No description provided.