From b476cf0e3699f699de2012232a63ac1cc3454d60 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 26 Apr 2022 15:37:19 +0200 Subject: [PATCH] fix: use correct return-variable --- app.js | 2 +- cert.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index e77072c..787cc3e 100644 --- a/app.js +++ b/app.js @@ -264,7 +264,7 @@ app.post('/issuer', (req, res) => { } issuer = req.body.issuer jwksOrigin = `https://${issuer}/` - const { privateKey: key, certDer: der, thumbPrint: thumb, exponent: exp, modulus: mod } = cert(jwksOrigin) + const { privateKey: key, certDer: der, thumbprint: thumb, exponent: exp, modulus: mod } = cert(jwksOrigin) privateKey = key certDer = der thumbprint = thumb diff --git a/cert.js b/cert.js index c55a760..05e69e3 100644 --- a/cert.js +++ b/cert.js @@ -122,8 +122,8 @@ const setup = (jwksOrigin) => { return { privateKey: forge.pki.privateKeyToPem(privateKey), - certDer: certDer, - thumbPrint: thumbprint.toString(), + certDer, + thumbprint: thumbprint.toString(), exponent: bnToB64(exponent), modulus: modulus.toString('base64') }