pyjwt icon indicating copy to clipboard operation
pyjwt copied to clipboard

Handle load_pem_public_key ValueError

Open CollinEMac opened this issue 10 months ago • 0 comments

This is a stab at addressing the issue discussed here: Consider cryptography 42.x.x new validation #948

All I did is raise a InvalidKeyError when there is a ValueError and return cast(RSAPublicKey, load_pem_public_key(key_bytes)) fails.

CollinEMac avatar Apr 05 '24 22:04 CollinEMac