The pope has said Israel has the right to enjoy peace and security within its borders and the Palestinian people have a right to a sovereign independent homeland .