Sounds like the rear switch from the symptoms you described. Easy replacement, a little tight to get your hands to.
Find the wires attached to the switch, remove from spade connectors. I think the switch is 11/16", you might need a long extension to get to the switch. Remove it replace with new and bleed the brakes.
Don't know why HD put the switch so close to the exhaust. Good Luck!