jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.1k stars 682 forks source link

Add openssh private key support #928

Closed Ansud closed 8 months ago

Ansud commented 10 months ago

It is mentioned in docs

When using the RSASSA-PKCS1-v1_5 algorithms, the key argument in both jwt.encode() and jwt.decode() ("secret" in the examples) is expected to be either an RSA public or private key in PEM or SSH format. 

But openssh private keys are not supported. Thus fix it.

Ansud commented 6 months ago

nice...