} else if ( getParameter("iidPkcs10") != null && !getParameter("iidPkcs10").equals("")) {
// NetID iid?
byte[] reqBytes = getParameter("iidPkcs10").getBytes();
if ((reqBytes != null) && (reqBytes.length>0)) {
log.debug("Received iidPkcs10 request: "+new String(reqBytes));
byte[] b64cert=helper.pkcs10CertRequest(signSession, reqBytes, username, password, RequestHelper.ENCODED_CERTIFICATE, false);
response.setContentType("text/html");
RequestHelper.sendNewCertToIidClient(b64cert, request, response.getOutputStream(), servletContext, servletConfig.getInitParameter("responseIidTemplate"),classid);
} else {
throw new SignRequestException("No request bytes received.");
}