Locate all of the old cotter pins and flange nuts along the roof.
Straighten out the bent ends of the cotter pin by using needle-nose pliers.
Pull the cotter pin out of the eyehole in the side of the flange nut. If the cotter pins are stuck, use needle-nose pliers to pull the cotter pin out from the flange nut.
Remove the flange nuts from the bolt with a wrench.
Replace the old flange nut with a new one and tighten it into place with the wrench.
Guide the cotter pin into the eyehole on the flange nut.
Bend the ends of the cotter pin down against the flange nut.
Repeat for all flange nuts and cotter pins along the roof.