Bought new lights and installed them on the trailer. In the past I've used "liquid electrical tape" on all the connectors. Not having it on hand, I sprayed them all with Flex Seal. It takes awhile to dry and several coats were needed before I felt they were sealed. Only time will tell.
It has worked great repairing a small hole in the tonneau cover of my truck.
Let us know how it works out!