You can make peace with an enemy, if the enemy abandons the idea of destroying you. That is the critical test. Democracies fail to understand what I just said.
A legitimate democracy cannot act against a terror organization because it is using civilians as a human shield, and therefore it should absorb attacks on its own civilians.