(CNN) -- The war in Iraq has not made the world safer from terror, Pakistani President Pervez Musharraf has told CNN, saying he stands by statements on the subject he makes in his new book, "In the Line of Fire."

In the book, Musharraf -- a key ally who is often portrayed as being in complete agreement with U.S. President George W. Bush on the war on terror and other issues -- writes he never supported the 2003 U.S. invasion of Iraq.

"I stand by it, absolutely," Musharraf told CNN's "The Situation Room." Asked whether he disagreed with Bush, he said, "I've stated whatever I had to ... it [the war] has made the world a more dangerous place."

He also addressed allegations that Pakistan was a less-than-enthusiastic recruit into the war on terror and that former U.S. Deputy Secretary of State Richard Armitage told a Pakistani official that the United States would bomb Pakistan "back to the stone age" if it did not cooperate with Washington after the September 11, 2001, terrorist attacks.

Armitage has denied making the threat. He told CNN he gave Pakistan a tough message, telling the Muslim nation it was either "with us or against us."

"I have written whatever I heard, and my intelligence director did say that," Musharraf told CNN. "I would leave it at that. He didn't contact me. He didn't say that to me."