Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm working on a job that should sign a XML file and I have a .p12 certificate file.
I'm loading the private key like so:
KeyStore ks = KeyStore.getInstance(keyStoreType);
ks.load(new FileInputStream(keyStoreFilePath), keyStorePass.toCharArray());
String alias = ks.aliases().nextElement();
PrivateKey privateKey = (PrivateKey) ks.getKey(alias, keyStorePass.toCharArray());
Unfortunately I'm encountering "java.security.UnrecoverableKeyException: Get Key failed: 1.2.398.3.10.1.1.2.2 KeyFactory not available"
I have little to no idea of what I can do to progress here, I looked it up and it seems I need to add a provider to my providers list, but I would need to know the provider for that.
If you have already been in a similar situation, I happily accept your advice, thanks everybody who reads this.
Hello,
Could you please let us know if this KB article helps for your use case?
Best regards
Sabrina
Hello, unfortunately this article doesn't seem related with my issue, still while looking it up I've tried reading my certificate as .p12 is a binary format, but the provided openssl command returns an error, this article didn't really help...
Respectfully.