Changes to support RTMPS connections