Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.
Description
- Version: v10.10.0
- Platform: Linux 4.9.0-8-amd64 deps: update openssl to 1.0.1j #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux (actually, both Ubuntu and Debian, I have bunch of servers running the service)
- Subsystem: Crypto (I guess)
My code is like
constFS=require('fs');constJWT=require('jsonwebtoken');constcertPem=FS.readFileSync('./public.pem');consttoken='xxxx';JWT.verify(token,certPem,{},(error,payload)=>{ ... });and runs without problem with Node 8 and Node 10.8/10.9 (Ubuntu and Debian, NodeJS offical APT source)
After I upgrade to Node 10.10 yesterday, on JWT.verify throws
Error: PEM_read_bio_PUBKEY failed at Verify.verify (internal/crypto/sig.js:122:23) at Object.verify (/my/project/path/node_modules/jwa/index.js:89:21) at Object.jwsVerify [as verify] (/my/project/path/node_modules/jws/lib/verify-stream.js:54:15) at /my/project/path/node_modules/jsonwebtoken/verify.js:116:19 at getSecret (/my/project/path/node_modules/jsonwebtoken/verify.js:76:14) at Object.module.exports [as verify] (/my/project/path/node_modules/jsonwebtoken/verify.js:80:10) Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.