Add ssl support to portal