Fix for Java keystore

Fixing a bug where the cert chain was installed into the old instead of the new temporary java keystore.
Merge pull request #56 from rad1us/develop

Fix for Java keystore