In this worksheet I describe local Rainich-type conditions on a spacetime geometry which are necessary and sufficient for the existence of a solution of the Einstein-Maxwell equations with a null electromagnetic field. When it exists, the electromagnetic field is easily constructed.
Torre, Charles G., "Rainich-type Conditions for Null Electrovacuum Spacetimes I" (2013). Research Vignettes. Paper 4.