Skip to content

Commit eab0e87

Browse files
author
Gyula Szalai
committed
Update dependencies
1 parent 9354b2e commit eab0e87

File tree

3 files changed

+1271
-1103
lines changed

3 files changed

+1271
-1103
lines changed

lib/keystore.reader.fs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ module.exports = function (debugNamePrefix, baseDir) {
7676
pubkeyJwk.kid = keyId
7777
pubkeyJwk.alg = algMap[cert.getSignatureAlgorithmField()]
7878
pubkeyJwk.use = 'sig'
79-
pubkeyJwk.x5c = [r.X509.pemToBase64(certStr)]
79+
const x5c = r.hextob64(r.pemtohex(certStr))
80+
pubkeyJwk.x5c = [x5c]
8081
debug(`Key id ${keyId}, key alg: ${cert.getSignatureAlgorithmField()}`)
8182
newKeys.set(keyId, {
8283
timestamp: Math.floor(Date.now() / 1000), // unix time

0 commit comments

Comments
 (0)