Start by washing and chopping green tomatoes, apples, and onions into small pieces.
Place chopped ingredients in a large saucepan.
Add raisins, brown sugar, cider vinegar, salt, mustard seeds, ground ginger, ground allspice, cinnamon, and cayenne pepper.
Stir well and bring the mixture to a boil over high heat.
Reduce heat to low, and let the mixture simmer for about 1 hour until thickened.
Sterilize jars and lids by boiling them in water for 10 minutes.
Remove the chutney from the heat, and let it cool for a few minutes.
Carefully transfer chutney into sterilized jars, leaving space at the top.
Seal jars tightly with sterilized lids.
Allow the chutney to cool completely before storing.
The chutney can be eaten immediately but tastes better when matured.
Store in a cool, dark place for a few weeks or months.