1. The circle's equation, given it passes through \((0, a)\) and \((0, -a)\), is:
\[ x^2 + y^2 + 2gx + 2fy + c = 0. \]
2. Because the circles go through \((0, a)\) and \((0, -a)\):
\[ f = 0, \quad c = -a^2. \]
3. The equation is then:
\[ x^2 + y^2 + 2gx + c = 0. \]
4. For the circles to touch the line \(y = mx + c\) at right angles, the following must hold:
\[ c^2 = a^2(2 + m^2). \]
Therefore, the answer is \(c^2 = a^2(2 + m^2)\).