Manuel Ramiro Ortega-Hernandez (U.S. Park Police/Via AFP/GETTY IMAGES)

Ortega-Hernandez, 21, who has described himself as the second-coming of Jesus, allegedly fired about a dozen shots at the White House on the night of Nov. 11 after driving to Washington from his home in Idaho Falls, Idaho.

He had told acquaintances that he considered President Obama to be “the devil,” the FBI said.

The shots were fired at the executive mansion with a semiautomatic rifle from about 750 yards away, and at least two rounds hit the exterior of the residential floors on the building’s south side, the FBI said.

Even though Obama and his wife were in San Diego at the time of the incident, the grand jury indicted Ortega-Hernandez on a charge of attempted assassination, punishable by up to life in prison upon conviction.

Ortega-Hernandez has been locked up without bail since being arrested five days after the shooting.

The grand jury, in U.S. District Court in Washington, also charged him with three counts each of assaulting a federal officer, assault with a dangerous weapon and possessing a gun during a violent crime. Those counts relate to three members of the Secret Service who were in the line of fire on the White House grounds on the night of Nov. 11, authorities said.

Ortega-Hernandez also was indicted on five counts of using a firearm during a violent crime, one count of illegally transporting a gun across state lines and one count of damaging federal property.

Read the indictment (full-size view available):

View Photo Gallery: A look at the case.

Read more of The Post’s crime coverage:

Infant, abandoned on doorstep in freezing cold, dies

Second alleged Harry Thomas accomplice charged

Rape of Va. girl, 8, has national implications

Charged in crash that killed 8-year-old, driver held without bail