[Mono-list] Authentication or decryption failure when accessing secure SOAP service (mono 2.6.3 (Debian 2.6.3-2~dhx1))

Jensen Somers jensen.somers at gmail.com
Wed Jul 28 15:05:02 EDT 2010

On Wed, Jul 28, 2010 at 16:15, Sebastien Pouliot
<sebastien.pouliot at gmail.com> wrote:
> On Tue, 2010-07-27 at 22:52 +0200, Jensen Somers wrote:
>> Error getting response stream (Trust failure): TrustFailure
> Google the above, fist link is:
> http://www.mono-project.com/UsingTrustedRootsRespectfully
> More information in the wiki's Security FAQ
> Sebastien

OK, after some trial and error I found that using
ServicePointManager.CertificatePolicy = new Trusts (); where Trusts
implements a validator seems to work. This is obsolete as of .NET 2.0
however and has been replaced with a callback mechanism. Unfortunately
that fails and keeps throwing authentication errors. Putting pragma
statements around the call solved it for now as I can access and
request all necessary information.

Thanks for the tip!

- Jensen

More information about the Mono-list mailing list