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.
M54_Male_cap_V2remix.scad | 609.0B | |
M54_Male_cap_V2remix.stl | 1019.3KB |