vCloud-DFTBA / faythe

An experimental cluster brings Prometheus and OpenStack together
https://git.io/JttUS
Apache License 2.0
18 stars 9 forks source link

JWT: failed to generate a public RSA key, Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key #58

Open eveningcafe opened 2 years ago

eveningcafe commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run faythe with rsa key in examples/key/faythe.rsa of this project

Screenshots ảnh

Additional context If we regenerate new key with command:

openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in rsa_private.pem -pubout -out rsa_public.pem

and use that for jwt, it will be ok. I don't know, maybe you should put it to readme

vtdat commented 2 years ago

Will do. Thanks.