I had the same problem, see #562, to open a key and got the error OpenSSL::PKey::RSAError: incorrect pkey type: RSASSA-PSS.
So I used the mentioned method and called OpenSSL::PKey.read.
But now I have a problem to sign a JWT with the algorithm RSASSA-PSS:
JWT.encode({}, key, "ps256")
# This returns:
# NoMethodError: undefined method `sign_pss' for #<OpenSSL::PKey::PKey oid=RSASSA-PSS>
I had the same problem, see #562, to open a key and got the error
OpenSSL::PKey::RSAError: incorrect pkey type: RSASSA-PSS.So I used the mentioned method and called
OpenSSL::PKey.read.But now I have a problem to sign a JWT with the algorithm RSASSA-PSS: