Passing Client Certificate from asp.net app

From: Marten Engblom (martene@unitedcommerce.com)
Date: 03/25/03


From: "Marten Engblom" <martene@unitedcommerce.com>
Date: Tue, 25 Mar 2003 10:41:39 -0800


I am interacting with a webservice that requires a client certificate for
authentication. I have retreived the certificate and it gives me access to
the webservice (I can browse to t etc).

I wrote a .Net library that encapsulates loading the cert (which I exported
to a .cer file), the communication with the webservice and so forth, and a
little windows app to test the library. Everything is hunky dory so far.

The problem is that when I am calling the encapsulating library from a
asp.net web application, access to the webservice is denied (HTTP 403:
Forbidden).

I am guessing that this is because the client certificate is personal and
installed for the user account under which it was retrevied and installed,
and the web app is running under a different account, which cannot use the
cert.

So, what I need to do is to make the web app run under the same account
under which the certificate was retreived (correct me if I am wrong or there
is another better way). How can I do this?

Thanks in advance,
Marten Engblom



Relevant Pages

  • Re: webservice permissions
    ... > c) If you want to use a custom account for a web app pool identity, ... >>I have a client who is trying to deploy a webservice I wrote. ... >> service reads a file on a file server and delivers information about it. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: webservice permissions
    ... > c) If you want to use a custom account for a web app pool identity, ... >>I have a client who is trying to deploy a webservice I wrote. ... >> service reads a file on a file server and delivers information about it. ...
    (microsoft.public.inetserver.iis)
  • RE: The remote certificate is invalid according to the validation proc
    ... the webservice is protected through https/ssl. ... you also add client certificate in your ... try accessing the server service to see ... SSL certificate or the servername you used to access the server. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: ClientCertificates and SoapWebRequest
    ... \par Microsoft Online Support ... \par Subject: ClientCertificates and SoapWebRequest ... \par client certificate to access a webservice. ... so that I can load a client certificate and add ...
    (microsoft.public.dotnet.framework.webservices)
  • HELP! WSE Token Manager calling another webservice
    ... There is our Processing Webservice, ... Finally we have our Authentication webservice, ... This client app has to exchange information with the Processing ... which retrieves the client certificate from the ...
    (microsoft.public.dotnet.framework.webservices.enhancements)