Comments (1)
Just realised the issue was related to generating the der
directly from the public.pem
. Following along with the information at the bottom of your readme solved the problem...
public / private pem generation (node system)
# generates private.pem
ssh-keygen -t rsa -b 2048 -f private.pem -N ''
# generates public.pem
openssl rsa -in private.pem -pubout -outform PEM -out public.pem
convert public.pem to public.der (for use in rust)
# convert private.pem (above) to private.der.
openssl rsa -in private.pem -outform DER -out private.der
# generate the public.der from private.der
openssl rsa -in private.der -inform DER -RSAPublicKey_out -outform DER -out public.der
Cheers
from jsonwebtoken.
Related Issues (20)
- `validate_exp` should also reject tokens that contain a `exp` field but that can not be parsed
- src/pem as a separate crate? HOT 1
- Invalid signature HOT 1
- InvalidKeyFomat when using private.pem file
- Create Dummy Instances of Error HOT 2
- 大佬看下,生成的token,我定了30秒有效期,超过了30秒怎么还能解码呢, HOT 6
- Question: expected audience in validation but not encoded in the JWT seems a valid option HOT 6
- Feature Request: encryption of jsonwebtoken HOT 1
- Support algorithm: `none` HOT 1
- Validation: `required_spec_claims` HashSet should use a non-allocating value type. HOT 1
- Validation: Allow validation of custom claims HOT 1
- validation.rs panics due to improper exp while calculating less_then window/leeway HOT 5
- Feature request : optionnaly use aws-lc-rs instead of ring HOT 4
- Add `ES256K` algorithm HOT 1
- exp field reported as missing when present but of wrong type
- Help regarding decoding key and validating. HOT 3
- Decode JWT without signature verification? HOT 3
- Is there a way to derive the public key from the private key for ECDSA keys? HOT 1
- Failure to Verify EdDSA Signature from DER Public Key, Succeeds in PEM HOT 2
- Help for maintenance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonwebtoken.