From 7fbb9f9df39baf747ff66331e6bbc81955fff963 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 15 Oct 2024 12:23:32 +0200 Subject: [PATCH] remove explicit encoding --- src/acme2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acme2.js b/src/acme2.js index b60ccedfc..ef4ff8c02 100644 --- a/src/acme2.js +++ b/src/acme2.js @@ -294,7 +294,7 @@ Acme2.prototype.signCertificate = async function (finalizationUrl, csrPem) { assert.strictEqual(typeof finalizationUrl, 'string'); assert.strictEqual(typeof csrPem, 'string'); - const csrDer = await shell.spawn('openssl', ['req', '-inform', 'pem', '-outform', 'der'], { input: csrPem, encoding: 'buffer' }); + const csrDer = await shell.spawn('openssl', ['req', '-inform', 'pem', '-outform', 'der'], { input: csrPem }); const payload = { csr: b64(csrDer)