The EU was against it as a unilateral option.
And there is no passarelle clause in the protocols relating to UK specific rights in the Lisbon Treaty, nor the European Commission being unable to propose laws relating to security or defense. Plus, alongside Denmark and Malta, we never signed up to PESCO.
If we remain we legally revert to exactly how things were. It’s as simple as that.