Question
Lantiqx
Lantiqx
IN
Lantiqx
Posted: Apr 3, 2025
Last activity: May 15, 2025
Last activity: 15 May 2025 14:48 EDT
Closed
Error when trying to fetch Access Token
Hi guys,
I am getting any issue while trying to fetch the access token. In the logs i am seeing the below error:
"Exception occurred while acquiring token: Get Key failed: Given final block not properly padded. Such issues can arise if a bad key is used during decryption."
Could anyone help me out with resolving the issue, please.
Regards,
Mamatha Adiraju
***Edited by Moderator Marissa to change type from General to Product, added Product details and Capability tags***
To see attachments, please log in.
@MAMATHA Adiraju The error message you’re seeing usually means there’s a mismatch or corruption in the encryption key used during token decryption. In Pega or similar systems, this can happen if the encryption key used to encrypt the token (or secret) doesn't match the one currently configured for decryption often caused by changes in key store configuration or corrupted secrets. To resolve it, first check if the key used for encryption/decryption is correctly configured in the key store or keystore file. If your application was recently migrated or restored, ensure that the correct encryption keys were imported or retained. Also, verify that the encrypted data wasn’t modified or truncated. If you're using Pega, recheck the authentication profile and associated keystore instance. Re-uploading or re-generating the client secret may help if the current one is corrupted or incompatible.