// Create a pkcs10 request
String certificateProfile = ExtraConfiguration.instance().getString(ExtraConfiguration.SCEPCERTPROFILEKEY);
String entityProfile = ExtraConfiguration.instance().getString(ExtraConfiguration.SCEPENTITYPROFILEKEY);
boolean createOrEditUser = ExtraConfiguration.instance().getBoolean(ExtraConfiguration.SCEPEDITUSER);
PKCS10Request req = new PKCS10Request(100,username, reqmsg.getRequestDN(), altNames, null, null, entityProfile, certificateProfile, caName, pkcs10);
req.setCreateOrEditUser(createOrEditUser);
SubMessages submessages = new SubMessages();
submessages.addSubMessage(req);
msgHome.create(transId, submessages);
reply = createPendingResponseMessage(reqmsg, racert, rapriv, cryptProvider).getResponseMessage();
}