Skip to content
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

Decrypt Error with Open SSL 3 #139

Open
Vishal8523 opened this issue Aug 7, 2023 · 4 comments
Open

Decrypt Error with Open SSL 3 #139

Vishal8523 opened this issue Aug 7, 2023 · 4 comments

Comments

@Vishal8523
Copy link

Using Debian 12 (bookworm), using jose CLI unable to decrypt a JWE with Open SSL 3.0.9
Getting the error: Unwrapping failed!
How to proceed ?
Any suggestions ?

@sergio-correia
Copy link
Collaborator

Could you please provide more info on how to reproduce the issue?

@Vishal8523
Copy link
Author

Generate RSA Pair:

  1. openssl genrsa -traditional -out priv.pem 4096
  2. openssl rsa -in priv.pem -outform PEM -pubout -out pub.pem

Using this public pem a JWK is created and with which encryption is done
And decryption is done as follows:
jose jwe dec -i encrypt.json -k priv.pem
and during the decryption, the Unwrapping Failed error is shown

@Vishal8523
Copy link
Author

@sergio-correia : Any inputs ?

@RaminRad111
Copy link

@Vishal8523
Hi
I'm encountering the same problem.
Have you found any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants