Skip to content

simple tests with jwt. public private key NOTE: must turn .pub into .pem

Notifications You must be signed in to change notification settings

cold-storage/jwt-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Examples

./build.sh
npm test

So to use public private key you generate a keypair as normal.

$ ssh-keygen -t rsa -b 4096 -C "junk@id.rsa"

This second bit is the KEY!!! You MUST turn your .pub file into a .pem or jsonwebtoken no like it! You will get nasty errors like: JsonWebTokenError: invalid algorithm

$ ssh-keygen -f junk_id_rsa.pub -e -m pem > junk_id_rsa.pem

About

simple tests with jwt. public private key NOTE: must turn .pub into .pem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published