Add ssl support based on url scheme