Added proxy for am when using ssl