Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b476cf0e36 |
@@ -264,7 +264,7 @@ app.post('/issuer', (req, res) => {
|
|||||||
}
|
}
|
||||||
issuer = req.body.issuer
|
issuer = req.body.issuer
|
||||||
jwksOrigin = `https://${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
|
privateKey = key
|
||||||
certDer = der
|
certDer = der
|
||||||
thumbprint = thumb
|
thumbprint = thumb
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ const setup = (jwksOrigin) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
privateKey: forge.pki.privateKeyToPem(privateKey),
|
privateKey: forge.pki.privateKeyToPem(privateKey),
|
||||||
certDer: certDer,
|
certDer,
|
||||||
thumbPrint: thumbprint.toString(),
|
thumbprint: thumbprint.toString(),
|
||||||
exponent: bnToB64(exponent),
|
exponent: bnToB64(exponent),
|
||||||
modulus: modulus.toString('base64')
|
modulus: modulus.toString('base64')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user