log.debug("Got requestType " + requestType + " and is expecting responseType " + responseType + " for user " + username);
}
ResponseData responseData = getRequestDispatcher().getCertificateResponse(username, password, requestType, buf, responseType);
// Check if got a valid result
if (responseData == null) {
context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, getMessage("enroll.noresponse"), null));
log.error("Certificate request for '" + username + "' failed. No response from CA.");
return;
} else if (responseData.getErrorMessage() != null) {
context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, getMessage("enroll.browsercert.couldnotcreate"), null));
log.info("Certificate request for '" + username + "' failed. " + responseData.getErrorMessage());