CertificationAuthority ca = getCertificationAuthority(request);
if(ca == null) {
log.warn("CA is not running or CA may not have been initialized. Unable to lock CA.");
portlet.addWarningMessage(request, portlet.getLocalizedString(request, "consolebase.warnMsg05"));
} else {
ca.lock();
log.info("CA is now locked.");
portlet.addInfoMessage(request, portlet.getLocalizedString(request, "consolebase.infoMsg12"));
}
} else if(request.getParameter("publish") != null) {
CertificationAuthority ca = getCertificationAuthority(request);