Colin Kaepernick threw for a career-high 412 yards and three touchdowns, with 13 completions to Anquan Boldin in the San Francisco 49ers' season-opening 34-28 victory over the Green Bay Packers.