*/
public void encryptKeystore(String f) throws CommandException {
RepositoryConfig nodeConfig = new RepositoryConfig(f,
new File(nodeDir, node).toString(), f);
NodeKeystoreManager km = new NodeKeystoreManager();
try {
km.encryptKeystore(nodeConfig,oldPassword,newPassword);
} catch (Exception e) {
throw new CommandException(strings.get("Keystore.not.encrypted"),
e);
}