A potential indictment of Hillary Clinton is a wild card in the Democratic race that could roil the party’s convention, a former federal prosecutor said.

“There is no way Secretary Clinton and her staff have not violated classified information laws — both misdemeanors and felonies,” said Joseph E. diGenova, former U.S. attorney for the District of Columbia. “The FBI is conducting a serious, criminal investigation. This is not a security review.”

Clinton has been under fire for using her private email server for official communications while serving as secretary of state. More than 1,000 emails were retroactively deemed classified.

DiGenova, who handled public corruption and espionage cases as a prosecutor, said he would expect the FBI to recommend charges within the next two months. The Democratic National Convention is in July.

“It could and should come down by then. The people deserve to know if the person who may be president of the United States has violated federal law,” he said.

Opinions have widely differed about whether Clinton should be indicted.

Yesterday former Massachusetts Republican Gov. William F. Weld — a U.S. attorney and head of the Justice Department’s Criminal Division in the 1980s — said he sees nothing illegal in Clinton’s actions.

“I’ve never bought that email thing,” Weld said. “I don’t think anything was classified when she did it — it got classified later.”