-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenSSL::PKey::PKey subclass for EVP_PKEY_RSA_PSS #715
Comments
You can currently use openssl/test/openssl/test_pkey_rsa.rb Lines 96 to 116 in 9569999
|
I wonder if we could add a PKey class for
|
I'm having the same issue. I'm trying to sign a JWT with a RSASSA-PSS1 private key (created with Not sure I follow the suggestion. Using # jwt-2.7.1/lib/jwt/algos/ps.rb:19
key.sign(translated_algorithm, msg, salt_length: :digest, mgf1_hash: translated_algorithm) Throws:
@Anstuhrm Did you mange to work around this? |
It does seem to work with: key.sign(translated_algorithm, msg) I have no idea what I'm doing here, frankly. Can someone elaborate? |
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:
The text was updated successfully, but these errors were encountered: