Exact solution for the generating function of correlators of the kinetic Glauber-Ising model