Bring a pot of water to boil. Add pasta and cook according to package instructions. Drain and set aside.
If using corn on the cob, heat a grill to 400° F. Brush the corn with olive oil, season with salt and pepper. Place the corn on the grill and cook with the lid down for 10-15 minutes, turning the corn regularly. Once tender, remove from grill. Let cool, then cut kernels from the cobs. Try to keep some corn bunches together.
For the pesto, combine basil leaves, parmesan, pine nuts, olive oil, and garlic in a food processor. Process until smooth. Taste and add salt, as necessary.
In a large bowl, combine cooked pasta, corn kernels, bell pepper, and chopped bacon. Stir carefully so as not to break up the corn too much.
Add about half of the pesto to the salad and stir again to incorporate.
Spritz on the lime juice.
Garnish with lime zest, extra pesto, freshly cracked black pepper, and chopped basil.