Compare commits

...

1 Commits

Author SHA1 Message Date
argoyle b476cf0e36 fix: use correct return-variable 2022-04-26 15:37:19 +02:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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')
}