// There are two ways to get the authentication code:
// 1. The user provided one when creating the CA on the create
// CA page
// 2. We use the system default password
boolean renew = false;
catoken.generateKeys(authCode, renew, true);
} catch (Exception e) {
String msg = intres.getLocalizedMessage("caadmin.errorcreatetoken");
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_CACREATED, msg, e);
throw new EJBException(e);
}