I am unable to encrpt long base64 encoded secret. API throws the following error:
failed to RSA encrypt the plaintext: crypto/rsa: message too long for RSA public key size
Really appreciate the help.
I am unable to encrpt long base64 encoded secret. API throws the following error:
failed to RSA encrypt the plaintext: crypto/rsa: message too long for RSA public key size
Really appreciate the help.
As the error says, it’s too long for the cryptographic algorithm you’re asking it to use.
There’s really not much more than can be said. You just need to stop asking Vault to do what is algorithmically impossible!