[Mono-dev] multiple client certificate issue

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


Hello,

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:

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

CallMethod1(cert1);
CallMethod1(cert2);
}

void CallMethod1(X509Certificate2 cert)
{
  Webservice ws = new Webservice();
  ws.ClientCertificates.Add(cert);
  ws.Method1("whatever");
}


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?

thanks!
Scott
-------------- 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