}
//Create the response message with all nonces and checks etc
ret = req.createResponseMessage(responseClass, req, ca.getCACertificate(), catoken.getPrivateKey(SecConst.CAKEYPURPOSE_CERTSIGN), catoken.getProvider());
ret.setStatus(ResponseStatus.FAILURE);
ret.setFailInfo(FailInfo.BAD_REQUEST);
ret.create();
} catch (IllegalKeyStoreException e) {
throw new IllegalKeyException(e);
} catch (NotFoundException e) {
// This can actually not happen here?
throw new CADoesntExistsException(e);