Yeah it works great for that. It’s also good in automotive for bulb sockets, I’ve used it for that as well. It’s amazing actually, slop some in a socket and next time you pull a bulb it will still look brand new, even if not well protected as the case with antique cars. You would think it might interfere with electrical contact an Vaseline is completely non-conductive, it doesn’t seem to at all.