[Mono-list] Updating my gmail source code

Daniel Lo Nigro lists at dan.cx
Sat Feb 16 12:30:29 UTC 2013

Hmm, you're right,
hard-coding ServicePointManager.ServerCertificateValidationCallback to
always return true should ignore the SSL/TLS certificate error.

There's an overload for the SslStream constructor that takes
a RemoteCertificateValidationCallback<http://msdn.microsoft.com/en-us/library/ms145056.aspx>;
maybe try passing your custom validator delegate to that as well? Perhaps
the SslStream is ignoring
the ServicePointManager.ServerCertificateValidationCallback or something
like that.

On Sat, Feb 16, 2013 at 11:23 PM, Paul Johnson
<paul at all-the-johnsons.co.uk>wrote:

> Hi,
>  Maybe the SSL root certificate is not installed. Have you tried running
>> "mozroots --import --sync" to import all the Mozilla root certificates
>> into Mono's certificate store? See
>> http://www.mono-project.com/**FAQ:_Security<http://www.mono-project.com/FAQ:_Security>and
>> http://linux.die.net/man/1/**mozroots<http://linux.die.net/man/1/mozroots>
> That is certainly the case here, but the first link (using root certs) on
> the mono website shows the code I'm using for the validator, so that too
> should work.
> Paul
> --
> "Space," it says, "is big. Really big. You just won't believe how vastly,
> hugely, mindbogglingly big it is. I mean, you may think it's a long way
> down the road to the chemist's, but that's just peanuts to space, listen..."
> Hitch Hikers Guide to the Galaxy, a truly remarkable book!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130216/3eb8ad2e/attachment.html>

More information about the Mono-list mailing list