I have mounted them on the reverse side of the electrical panel on a few 5xxs. That allows ample free air for cooling, and the plugs from Ricks are still long enough to reach the stock outlets.
Basically, I drilled from the front side, slid some flat head screws through, mounted the Ricks atop those, and nutted it down. Easiest with panel removed from the bike, obviously.