Ssl support for upstream