PITTSBURGH — The youth charity at the center of the child sex-abuse charges against former Penn State assistant football coach Jerry Sandusky received donations in recent years from hundreds of corporations, community groups and individuals – including the judge who arraigned Sandusky and Penn State itself.

On Monday, The Second Mile’s president resigned, saying he hoped his departure would help restore faith in its mission.

Jack Raykovitz, a practicing psychologist, had led the charity for 28 years.

Raykovitz had testified before the grand jury that recommended indicting Sandusky on child abuse charges. The panel said Sandusky found his victims through the charity’s programs.

Raykovitz was alerted almost a decade ago to an allegation that Sandusky had been seen sexually assaulting a boy on campus, according to the grand jury.

The Second Mile has acknowledged that Penn State athletic director Tim Curley told Raykovitz of the allegation in 2002. The charity said in a statement: “Mr. Curley also shared that the information had been internally reviewed and that there was no finding of wrongdoing. At no time was The Second Mile made aware of the very serious allegations contained in the grand jury report.”

The grand jury report called Sandusky the charity’s primary fundraiser, and The Second Mile’s annual reports show that some donations came from entities now involved in the scandal.

Penn State gave money even after university officials were told of the 2002 sexual assault allegation against Sandusky. Penn State donated between $1,000 and $1,999 in 2009, and its Altoona campus donated between $2,000 and $4,999 that same year.

The charity also counted U.S. Steel Corp., the University of Pittsburgh, The Pepsi Bottling Group and Frito-Lay among its financial supporters.

State College District Judge Leslie A. Dutchcot and her husband gave between $500 and $999 to The Second Mile in 2009, according to annual reports. She also volunteered for the group, according to her website.

Earlier this month, the judge set bail for Sandusky at $100,000 unsecured. He did not have to post collateral to be freed but would have to post $100,000 if he failed to show up for a hearing.

Dutchcot did not immediately respond to a question on whether she will recuse herself from the case because of those past ties to The Second Mile.

– The Los Angeles Times contributed to this report.