updated ssl and support multiple listening endpoints