Head into Settings > Phone > SIM Pin. Toggle SIM Pin on. Note that you may need to contact your carrier to figure out what the default pin is if this is your first time setting this up. After entering ...
Editor’s note: We’ve discovered a solution far simpler than setting a SIM PIN, so we’ve updated this story accordingly. A week ago, Ars Technica reported on a flaw within Apple’s iMessaging system.