The Ukrainian president said he could agree to end the "hot phase of the war" against Russia on one condition.