Node-jsonwebtoken: why tips me "PEM_read_bio:no start line"

Created on 30 Oct 2017  路  1Comment  路  Source: auth0/node-jsonwebtoken

Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Error (native)
at Sign.sign (crypto.js:283:26)

Most helpful comment

Be sure you use the private key to sign and public key to verify.

We have some example in tests, just in case the format is incorrect or not well loaded:
https://github.com/auth0/node-jsonwebtoken/blob/master/test/rsa-public-key.tests.js
You can also check the keys in the test folder.

Similar: https://github.com/auth0/node-jsonwebtoken/issues/400

>All comments

Be sure you use the private key to sign and public key to verify.

We have some example in tests, just in case the format is incorrect or not well loaded:
https://github.com/auth0/node-jsonwebtoken/blob/master/test/rsa-public-key.tests.js
You can also check the keys in the test folder.

Similar: https://github.com/auth0/node-jsonwebtoken/issues/400

Was this page helpful?
0 / 5 - 0 ratings

Related issues

svnty picture svnty  路  3Comments

salali picture salali  路  5Comments

prevostc picture prevostc  路  4Comments

Teebo picture Teebo  路  4Comments

ngminhduong picture ngminhduong  路  3Comments