[Mono-dev] multiple client certificate issue

Scott Douglass smdouglass at gmail.com
Tue Oct 22 18:44:55 UTC 2013


I am developing an application that needs to talk to an existing web
service that uses client certificates to authenticate and provide access to
different things.  The simple case of using a single certificate works
fine, but when there the application needs to switch certificates to
provide access to a different 'account' on the same webservice, it does not
work.  Something is caching or reusing a session or something.  The
behavior of the same code running on Windows .NET is what I would expect.
Here is some pseudo code to boil down what's happening:

X509Certificate2 cert1 = new X509Certificate2("file", "password");
X509Certificate2 cert2 = new X509Certificate2("file2", "password");


void CallMethod1(X509Certificate2 cert)
  Webservice ws = new Webservice();

Basically on the first call, it uses cert1, then on the second, it reuses
cert1 (or the authentication from the first call).

Is this something that isn't supported in mono or is there a bug?
More importantly (to me) is there something I can do outside of mono to
change this to the proper behavior?

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

More information about the Mono-devel-list mailing list