Wash chicken legs and pat dry. Remove skin carefully. Spread the pesto on the meat, pull the skin back over it. Mix oil, salt and pepper. Brush chicken legs with it. Place in grill trays and place on the hot grill. Grill for 20-30 minutes