Use 1-1/4" hot dipped galvanized roofing nails. The nail point is required to come through the sheathing if 1/2" or 5/8". Use 3/4" sheathing, the nail is required to go 3/4" into it, no shorter. That is why you should see nails when 1/2" ply or 7/16"osb is used, if not , improper nail application.
Read the shingle wrapper. Be safe, G
Read the shingle wrapper. Be safe, G