Add a management comand to regenerate certificates with status 'error', optionally restricted to a subset of courses.