Former NYPD Commissioner Bernie Kerik revealed to The Post on Tuesday how he first learned that President Trump was issuing him a pardon for his felony conviction.

Kerik, 64, said he had no idea he was going to be pardoned until he got a call from the president on his cellphone at 11:57 a.m.

“Right now, as we’re speaking, I’m signing your presidential pardon,” Kerik said Trump told him.

“Your record will be expunged. Go on with your life.”

Kerik recalled, “It was pretty emotional. I just thanked him several times.

“This makes you an American citizen again,” the former top city cop said of the rare move.

Kerik — who pleaded guilty in 2009 to tax fraud and lying to White House officials vetting him for the position of head of homeland security under President George W. Bush — said he previously applied for a pardon with the Obama administration but never heard back.

Kerik said he and Trump crossed paths in the early 1990s in New York City and were friendly but never hung out.

But “I’ve always had enormous respect for Donald Trump, especially in the aftermath of 9/11, when he came down several times to the area and helped motivate the men and women who were working there,” said Kerik, who was head of New York City’s Police Department at the time.

“He sent people down there to help and donate.”

As for the pardon, “I feel good. I feel great,” Kerik said. “A lot of people don’t realize that with a federal conviction, you lose a lot of civil and constitutional rights.

“This president understands that.”

He said one important right that was taken away from him with his conviction was his ability to carry a gun.

Now that he’s been pardoned — and his conviction wiped out — Kerik said he plans to get a license to carry a gun again.

“I’ve carried a gun since I’m 18 years old,” the Army vet and former cop said.

Kerik said he was allowed to vote as soon as he got off parole for his crimes, including in the last presidential election, when he cast his ballot for Trump.

“Even if this [pardon] didn’t happen, I would have voted for Donald Trump” again, Kerik said.