European pledges to pursue close security ties with Britain after Brexit have been numerous since the U.K.’s vote to leave the bloc two years ago today—but to some, they are starting to ring hollow.

British officials—and some current and former European defense officials—say they fear that talks on a future security partnership are hitting obstacles because European Union negotiators are too focused on legal hurdles and not on long-term strategic cooperation.

EU...