I'm not sure a "gasket maker" product will have the best adhesive properties.
I think a little better choice is this black adhesive. I've used it on other things and it states that it can be used on wires.
https://www.permatex.com/products/ad...esive-sealant/