The trick is to make it voluntary but then make it so useful that nobody would not want to have one.
A universal card that can be used as The ID key to being able to vote, prove your national insurance to a new employer, residency status when renting a property, driving licence, tax, library...