-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unable to decode Ciphertext: required version of backing key is invalid #68
Comments
I can reproduce the issue with a simple curl:
If I follow the httpie example from the readme, only the
It means that the |
Ok, the issue was in my lambda code. Just need to follow the code example here: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-email-sender.html A working code is:
Sorry for the disruption! ^^ |
Hello !
I try to use local-kms with cognito-local, and I have an issue on decryption. cognito-local encrypt a code, send it to a lambda that decrypt the code to send it by email.
Local-kms logs:
Seed.yaml (same as the README.md):
My JS code to ask for decryption:
This is the value of
encryptedString
:And the blob that is send to local-kms:
Lambda logs:
I've tried to retry from start with a backingKey generated with
openssl rand -hex 32
, but I still have this error message.Can I have some inputs to help me to solve this please ?
The text was updated successfully, but these errors were encountered: