Replies: 1 comment 2 replies
-
|
This would mean your decryption key isn't right, i.e. you're using the wrong license key or machine fingerprint combination to decrypt the machine file. Environments change nothing about how a license/machine file is signed and encrypted. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am creating a Java client for offline validation. After I've activated a machine, I check out a machine file that includes the license, and then I decrypt it and validate it. Currently all resources I am using are in the global keygen environment, and everything works.
Now I've just started writing some tests and have set up another environment to create test resources in. The environment is shared, so that I can re-use the policies from my global environment.
The problem is that after I create a license & activate a machine in the test environment, when I checkout the machine file I get an error when I try to decrypt it. The signature itself verifies OK. All requests (create license, activate machine, check-out file) are made with the appropriate Keygen-Environment header.
Here is the code for the decryption, its (mostly) from the Java example Keygen.sh provides:
The call to
cipher.doFinal(output, len)fails with Exception:org.bouncycastle.crypto.InvalidCipherTextException: mac check in GCM failed. Again, this only occurs with the test environment, with the global environment it works.Beta Was this translation helpful? Give feedback.
All reactions