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
fixed fetchfile function

on systems with UTF8 as default encoding pem certificates have
been evalutated as non file (-T option only accepts ASCII files)
updated example config files
renamed example config files to *.template
Merge pull request #57 from rad1us/develop

Develop