If you use footprints which come with KiCad the mask layer is created automatically correctly because pads include solder mask openings. When you export gerbers - assuming you communicate with your contract manufacturer using gerber files and not KiCad files directly - you should inspect the gerber files and check that every place you want exposed copper (mostly pads) have colored area in the mask layer gerber file.