web services over http

P

priya

Hi

I have a webservice setup for which I want to use client certificates. I installed a Web-Server certificate on my web server. I then generated an
installed a client-certificate for my web browser.My web browser can now connect to the web service, and the web service recieves the clien
certificate
(For the web service application I have checked the 'Required Client Certificates' option in IIS.

Trying to consume a webservice through aspx page over SSL with Client Certificate and getting below error

[WebException: The request failed with HTTP status 403: Access Forbidden.
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream) +113
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +21
 
J

Jan Tielens

You need to make sure the client side certificate is in the Certificate
Store of the user that is used by ASP.NET/IIS to run the web application.
You've probably put the client certificate in the CS of your own user
profile. To easily test this I suggest you let ASP.NET/IIS run under your
own user profile (JUST FOR TESTING) and see if it works.

If you need more info, let us know...

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


priya said:
Hi,

I have a webservice setup for which I want to use client certificates. I
installed a Web-Server certificate on my web server. I then generated and
installed a client-certificate for my web browser.My web browser can now
connect to the web service, and the web service recieves the client
certificate.
(For the web service application I have checked the 'Required Client Certificates' option in IIS.)

Trying to consume a webservice through aspx page over SSL with Client
Certificate and getting below error.
[WebException: The request failed with HTTP status 403: Access Forbidden.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream) +1130
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +216
 
P

priya

How do we know which store ASP.NET/IIS is using
How can we make ASP.NET/IIS run under my user profile ?
 
J

Jan Tielens

You can change the properties of the website or the virtual directory in the
IIS management console. Also you can configure the process identity in the
web/machine.config file of the .NET Framework.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top