Relative Content

Tag Archive for javapem

How do I properly Read a PEM PrivateKey

I’m trying to read a private key for a JWT generation but get an error: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : null.
I simplified the code to use some valid base64 key but still get this error.