M54 Male Cap v2 w/O-ring
I slightly modified Monkeybird747's male cap to make space for an readily available (in the US) O-ring. The O-ring makes a dust-proof and moisture proof seal. Any O-ring in the range of 52-54mm diameter with 3mm cross section will work.
I am providing my openSCAD source code so you can modify it slightly if needed for your O-ring.