HighTechTalks DotNet Forums  

Could not establish trust relationship - Webservice error message

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Could not establish trust relationship - Webservice error message in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Paddy
 
Posts: n/a

Default Could not establish trust relationship - Webservice error message - 05-30-2006 , 12:53 PM






I know that there are plenty of posts about the problem but I think
mine is a bit different so bear with me.

I am getting a Webservice exception "Could not establish a trust
relationship with the server" on the client side ... but the
certificate on my server is actually generated locally i.e. it is not
from Verisign or Thawte, I generated it using selfssl.exe.

The thing is I can use that certificate while browsing other websites
in the default web site group from the clients. But I cannot use the
web service using the https://myWebservice/Mypage.asmx ... which ends
up throwing the exception stated above.

I can also use the https://myWebservice/Mypage.asmx on the client in IE
which shows up the methods exposed by the webservice. Of course, i
cannot use them as they can be used only from the local machine where
the service is installed i.e. the server. Note that I have installed
the certificates from the main server onto my clients and my (test)
server is now part of the "Trusted Root Certifcation Authorities" on
the client side.

I can probably try manipulating the code to get it working but being a
tester that would take some time as it has to come through development.
Not to mention that the https thing works perfectly without any
modifications for the production servers and client. There , of course,
the certficates are all from Verisign.

So, any help to get this working without any modification of the code
base is appreciated in this case.
- K


Reply With Quote
  #2  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: Could not establish trust relationship - Webservice error message - 05-30-2006 , 09:21 PM






Quote:
I am getting a Webservice exception "Could not establish a trust
relationship with the server" on the client side ... but the
certificate on my server is actually generated locally i.e. it is not
from Verisign or Thawte, I generated it using selfssl.exe.
First import the certificate into the store... you may use "Current User" or
"Current Machine" account.

--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.