Support encrypted WDS connections (#2463)