When I use JWT decoding with a RS256 encoded pub key:
jwt.decode(token, pub_key)
I get *** ValueError: This key may not be safe to import. This seems to originate in import_from_bytes which checks the key prefix against this constant.
Since -----BEGIN is in this list, it seems like no PEM-formatted keys would work with joserfc?
This key works fine with PyJWT and I'm a bit confused by what the problem is. What is the risk here?
When I use JWT decoding with a RS256 encoded pub key:
I get
*** ValueError: This key may not be safe to import
. This seems to originate in import_from_bytes which checks the key prefix against this constant.Since
-----BEGIN
is in this list, it seems like no PEM-formatted keys would work with joserfc?This key works fine with PyJWT and I'm a bit confused by what the problem is. What is the risk here?
Thanks!