Re: SSL and web services

From: Trebek (alextrebek_at_intheformofaquestion.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 10:50:25 -0400

Hello Rob,

Faced with a similiar situation a few years ago, I explored several
different options regarding manipulating ASP.NET permissions, other account
permissions, etc. In the end, the solution that worked the best was to
simply create a COM+ app, set it to run under an account created explicitly
for this purpose and go from there. At the time, this was the only viable
option but since then, Microsoft suppossedly addressed this issue with the
following :

For 1.0 framework.
817854 FIX: ASP.NET Web Application Cannot Deliver a Client Certificate to a
http://support.microsoft.com/?id=817854

For 1.1 framework
821156 INFO: ASP.NET 1.1 June 2003 Hotfix Rollup Package
http://support.microsoft.com/?id=821156

Along with this fix you will need to install the client certificate under
the
Local_Machine registry hive and not the Current_User hive. You will then
need to
give the ASP.Net account access to the private key for the client
certificate to
get all of this to work.

After looking at this, we elected to keep it all as a COM+ app so I don't
have an experience with the above-mentioned solution.

HTH,

Alex

"Rob Conery" <robconery@hotmail.com> wrote in message
news:O%230LtjoLEHA.1392@TK2MSFTNGP09.phx.gbl...
> Hello- I have been through Google Groups and all over the web reading up
on SSL and web services, and so far I think I am becoming an expert! So
here's the problem-
> I can connect to the web service and execute from a cosole application,
and not from my web application - i receive the familiar "The underlying
connection was closed: Could not establish secure channel for SSL/TLS" when
i try to run this service.
>
> I made my own ICertificatePolicy class, and am using that to ignore the
warnings; that didn't do it.
> I put the valid certificate in my web root, and referenced it in the code;
that didn't do it
> I checked my proxy connections, dropped my firewall, made sure the service
was running, proxied the WSDL files on my local machine, and that didn't do
it.
>
> I can't post all of the code here for NDA reasons, but my major question
is this: How is it that i can run the exact same code from a console app and
have it work, and not have it work using a web app?
>
> The only difference that i can see is that the web app process is using
the ASPNET account, and not my local account, to execute the web service. I
can't see how that would be an issue, but if it is, can one of you genius
types offer a solution?
>
> Thanks so much,
> Rob
>
>
> **********************************************************************
> Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
> Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...



Relevant Pages

  • Re: Calling web service with client certificate gives 403 Forbidden
    ... Regards, ... I'm trying to call a Web service which requires a Client ... > I've added the client certificate to my user account, ... > also set up a port and specified the client certificate thumbprint. ...
    (microsoft.public.biztalk.general)
  • Calling web service with client certificate gives 403 Forbidden
    ... I'm trying to call a Web service which requires a Client ... I've added the client certificate to my user account, ... biztalk web services are running as and the local machine account. ...
    (microsoft.public.biztalk.general)
  • Best way?
    ... I have a Web service that I'm developing that I'm trying to make as ... In my main app, I have an account ... order to add a business to it I have to ReDim and Preserve the business ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: ASP.NET security and RSA SecurID
    ... What if you change the processModel or App Pool ID to a more privileged ... account such as an administrator or SYSTEM? ... > when I call the api from a web service or a web app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Application Flow / security issues
    ... You won't need a special service account. ... If the use case of the app is basically to have a user log in and then loop ... I just checked with corp. and if I want to do delegation I have to ask ... - You are using integrated windows auth in your web app ...
    (microsoft.public.dotnet.framework.aspnet.security)