userStore.load(null, null);
userStore.setKeyEntry(sel, keypair, ((ShowKeyStoreForm) form).getPassword().toCharArray(), ((ShowKeyStoreForm) form).getSelectedKeyStore().getCertificateChain(sel));
userStore.store(out, ((ShowKeyStoreForm) form).getPassword().toCharArray());
out.close();
}
l.addDownload(new CSRDownload(clientCertFile, clientCertFile.getName(), "application/octet-stream", mapping.findForward("success"),
"exportPrivateKey.message", "keystore", sel));
return mapping.findForward("success");
}