I think it was described above already somewhere. You need to make Safari accept JOSM’s SSL certificate. As it is not signed by any of the standard authorities Safari probably rejects it. Not being a Safari user I cannot tell you how to accomplish that. Did you try the install certificate option on the remote control preferences page in JOSM?