-
Notifications
You must be signed in to change notification settings - Fork 43
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
Keys from keystore do not work #242
Comments
grthor
changed the title
Keys from the keystore do not work
Keys from keystore do not work
Apr 16, 2021
Some of my thoughts while looking at this:
import org.jcryptool.core.operations.providers.ProviderManager2;
try {
getInstance().pushFlexiProviderPromotion();
your.code();
} finally {
getInstance().popCryptoProviderPromotion();
}
If I were to check these, I'd start with the third as it's the least labor-intensive. |
I have investigated the problem further and have come to the following results:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the algorithms perspective, the keys supplied from the keystore do not work. The algorithms themselves work. You can test this by creating a new key and executing the algorithm. With a newly created key, the algorithms work.
If you restart the JCT with the newly created key, the new key will also no longer work. The same error message appears as with the keys from the keystore.
I traced the problem and found a (probably) broken certificate chain. The certificate chain seems to break when saving or loading the keystore. The following text is an example of a certificate chain before and after saving:
Before saving (working):
After loading (broken):
The broken certificate chain will be most likely the problem why the provided keys from the keystore do not work.
My starting point is currently to track whether saving or loading is the problem.
The text was updated successfully, but these errors were encountered: