Butyl rubber caulk sold as gutter seal works well if you have time to let it set. It takes several days to skin over so you can paint it. Polyurethane roof sealer is faster as posted above. The "seam seal" from the parts stores - at least autozone - is junk. It shrinks and cracks.