https://bugs.winehq.org/show_bug.cgi?id=37996
--- Comment #13 from Roger Vuistiner vuistiner@epsitec.ch --- I had somehow a similar problem on OSX + Wine with Mono for Windows (4.0.3). In my case the validation code raises the following exception (attachment 52179). The problem is the initialization of the `ServicePointManager.ChainValidationHelper.is_macosx` variable. This variable should be set to false on OSX + Wine, but the actual code does not address whether we are running on Wine or not.
- actual code: is_macosx = File.Exists("/System/Library/Frameworks/Security.framework/Security"); - fixed code : is_macosx = File.Exists("/System/Library/Frameworks/Security.framework/Security") && Environment.OSVersion.Platform != PlatformID.Win32NT;
As a workaround we can use reflection to set the `is_macosx` variable to false under OSX + Wine (see attachment 52180)