So is the electronic ignition box supposed to shock you?

As @Plymouth 65 said, the ignition box MUST be grounded good. That means scrape the paint off both the box and what it's mounted to. I always run an extra ground wire just to be sure. It sounds like you were a ground.