Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 60773 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
This was not an issue on MacOS Sierra and didn't become an issue until High Sierra.
# Steps to reproduce
Using the library https://github.com/dsbenghe/Novell.Directory.Ldap.NETStandard/commits/master with a custom callback for SSL validation the validation never gets called.
Specifically calling the following does not call the RemoteCertificateValidationCallback
this.host = host;
this.port = port;
sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
var ipAddresses = Dns.GetHostAddressesAsync(host).Result;
var hostadd = ipAddresses.First(ip => ip.AddressFamily == AddressFamily.InterNetwork);
var ephost = new IPEndPoint(hostadd, port);
var nstream = new NetworkStream(sock, true);
var sslstream = new SslStream(
in_Renamed = sslstream;
out_Renamed = sslstream;
catch (Exception x)
# Expected behavior
The RemoteCertificateValidationCallback should be executed but it never gets called
# Actual behavior
This method never gets called
# Test environment (full version information)
This is on MacOS High Sierra. This code executed as expected prior to High Sierra and it works correctly in .Net Core 1.1 and 2.0 on High Sierra.
" at Mono.AppleTls.AppleTlsContext.CheckStatusAndThrow (Mono.AppleTls.SslStatus status, Mono.AppleTls.SslStatus acceptable) [0x00071] in /Library/Frameworks/Xamarin.Mac.framework/Versions/184.108.40.206/src/mono/mcs/class/System/Mono.AppleTls/AppleTlsContext.cs:124 \n at Mono.AppleTls.AppleTlsContext.ProcessHandshake () [0x00026] in