I agree the government has a duty to protect the vulnerable but only an authoritarian government would feel comfortable introducing enforced vaccinations.
As you suggest, if a scheme were introduced that you were only able to attend certain social gatherings by producing a proof of immunity / vaccination certificate then that would solve the problem.