From cb6fe9f8ee4bf8b603603a9e2ac59ef32a479c14 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sun, 17 Mar 2024 19:52:04 +0100 Subject: [PATCH] fix ecdsa key generation export --- bin/0ecdsa-generate-keypair.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/0ecdsa-generate-keypair.js b/bin/0ecdsa-generate-keypair.js index 820ab21..d973ae9 100755 --- a/bin/0ecdsa-generate-keypair.js +++ b/bin/0ecdsa-generate-keypair.js @@ -10,6 +10,6 @@ const privateJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.privateKey)) const publicJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.publicKey)) console.log(` -${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC_KEY="${publicJwk.replaceAll('"', '\\"')}" -${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY="${privateJwk.replaceAll('"', '\\"')}" +${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC_KEY=${publicJwk} +${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY=${privateJwk} `)