Fix HTTPS adapter to set "encrypted" to make tests pass.