NEW YORK — A US man convicted of being part of a New York trio just "days" from launching suicide bombs to take revenge for the US war in Afghanistan will be sentenced Friday.

Prosecutors describe Adis Medunjanin as a would-be terrorist and on Wednesday asked the sentencing judge to put him behind bars for life.

"The government respectfully requests that the Court sentence the defendant to life imprisonment," US Attorney Loretta Lynch said in a court filing.

"The defendant committed a host of heinous crimes aimed at killing and maiming his fellow American citizens in order to alter and take revenge for American foreign policy," she wrote.

At trial earlier this year, prosecutors described how Medunjanin and two former New York high school friends planned to bomb either the subway, Times Square, or another packed location. They were "within days of carrying out this attack," according to the prosecution.

The Bosnia-born Medunjanin, whose family fled to the United States during the war with Serbia in the 1990s, was also convicted of conspiring to murder US military personnel abroad, taking military training from al-Qaeda, and attempting to commit terrorism across national boundaries, among other charges.

The other two men in the alleged plot, Najibullah Zazi and Zarein Ahmedzay, have already pleaded guilty and testified against their old friend in hopes that cooperation with prosecutors would earn them lighter sentences. Their sentencing is scheduled for next year.