Preheat the oven to 350 degrees.
Peel the shallots – then drizzle with 2 tablespoons oil and wrap in foil.
Peel the ginger and cut into thin slices. Arrange in a single layer, drizzle with 2 tablespoons oil, and wrap in foil.
Pull the outer paper off the garlic. Cut the pointy tops off the heads of garlic so the cloves are partially exposed. Drizzle with 2 tablespoons oil, and wrap each head of garlic in foil.
Place all the foil packets on a baking sheet. Bake for 15 minutes. Remove the ginger (it should be soft), increase the temperature to 400, and roast the shallots and garlic for another 30 minutes until golden brown and very fragrant. When cooled, you can squeeze the garlic cloves out of the rest of the paper.
While the aromatics are roasting, pour boiling water over the chili peppers to rehydrate them. Let them soak for 15 minutes. Drain the water.
Put everything in a food processor or very strong blender. Pulse or puree until the yellow curry paste reaches your desired consistency.
