Equilibrium systems which exhibit a phase transition can be studied by investigating the complex zeros of the partition function. This method, pioneered by Yang and Lee, has been widely used in equilibrium statistical physics. We show that an analogous treatment is possible for a nonequilibrium phase transition into an absorbing state. By investigating the complex zeros of the survival probability of directed percolation processes we demonstrate that the zeros provide information about universal properties. Moreover we identify certain non-trivial points where the survival probability for bond percolation can be computed exactly.