[Mono-dev] Can anyone explain this to me? It's the Bermuda triangle.

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Mon Apr 21 20:23:13 UTC 2014


I'm trying to figure out why mono is rejecting one of my server's certs (while not rejecting some others).  I sprinkled WriteLines in the mono source, and I ran with --debug --trace

The last line I ever reach is 635.  And then exceptions are thrown.  Neither 638 nor 641 is ever displayed.  I don't know of any way this is physically possible.  I do have 6,000 lines of trace log starting with the WriteLine at 635, if anybody's interested to look at it...

(from 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs')

internal override bool OnRemoteCertificateValidation(X509Certificate certificate, int[] errors)
{
    System.Console.Error.WriteLine("NEDDEBUG 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs' line 635");
    if (this.ServerCertValidation != null)
    {
        System.Console.Error.WriteLine("NEDDEBUG 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs' line 638");
        return this.ServerCertValidation(certificate, errors);
    }
    System.Console.Error.WriteLine("NEDDEBUG 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs' line 641");

    return (errors != null && errors.Length == 0);
}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140421/91963c90/attachment.html>


More information about the Mono-devel-list mailing list