try {
String password = request.getParameter("password");
if(password == null) {
throw new Exception("Password is null.");
}
CertificationAuthority ca = getCertificationAuthority(request);
if(ca == null) {
throw new Exception("CA is not running. CA may not have been initialized.");
}
ca.unlock(password.toCharArray());
// Return to CA's index page
portlet.addInfoMessage(request, portlet.getLocalizedString(request, "consolebase.infoMsg14"));
log.info("CA has been unlocked successfully!");
return INDEX_MODE+BEFORE_ACTION;