Additional changes necessary to support invalid SSL certificates on staging.