What type of nail should I use?

Use hot-dipped galvanized roofing nails, either 11- or 12- gauge with a 3/8” diameter head. Or, follow the shingle manufacturer’s recommendation for the type of nail you should use.