After decades of wariness, the two nations are being drawn together by common interests and shared fears.