// first check if it is a Firefox request,
if (getParameter("keygen") != null) {
byte[] reqBytes=getParameter("keygen").getBytes();
if ((reqBytes != null) && (reqBytes.length>0)) {
log.debug("Received NS request: "+new String(reqBytes));
byte[] certs = helper.nsCertRequest(signSession, reqBytes, username, password);
RequestHelper.sendNewCertToNSClient(certs, response);
} else {
throw new SignRequestException("No request bytes received.");
}
} else if ( getParameter("iidPkcs10") != null && !getParameter("iidPkcs10").equals("")) {