Manufactured to be inserted into an M3 tapped hole, but for thin wall (Tin) boxes you can add an M3 nut.
eBay