Fix for Java keystore

Fixing a bug where the cert chain was installed into the old instead of the new temporary java keystore.