Hi Dany,
Welcome to MSDN newsgroup.
From your description, the problem occurs when you accessing the remote
webservice through the subdomain url and the webserver's server
certificated is obtained through the top domain name. I think we can try
the following test to confirm whether the problem is caused by the
inconsistent of the certificate issue name and the webserver's site
name(sub domain name):
1. create an asp.net webpage(not asmx webservice) under the web site which
used SSL protection and is available through sub domain url.
2. At clientside use IE to request that page through https url (sub domain
name) to see whether the page can be viewed directly or will occur a dialog
indicate that there has some thing wrong with the serverside certificate. I
f the dialog popup, that means the clientside found the certificate
inconsistent with the site's name. Since when calling the webservice
programmatically, there hasn't means for us to suppress such warning like
we interactivly in IE, so there may lead to a connection failed exception.
Please have a check and let me know if this is the problem so that we can
continue to do some further invesigation.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Thread-Topic: Problem with SSL with a sub domain
thread-index: AcWzQRoyyWc7+S+lQJitPF0V8tFS9g==
X-WBNR-Posting-Host: 69.159.133.147
From: "=?Utf-8?B?RGFueSBDLg==?=" <dc********@newsgroups.nospam>
Subject: Problem with SSL with a sub domain
Date: Tue, 6 Sep 2005 17:14:24 -0700
Lines: 13
Message-ID: <40**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7798
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
We have install a valid SSL certificate issued to
www.mycompany.com on our
web server running IIS 6.0 / win2003 SP1. Then we have created a sub
domain
pointing to the same server for our web services at ws.mycompany.com. We
have
properly installed the server certificate on the client machine.
When the client try to connect to our secure webservice at
https:\\ws.mycompany.com we have the foolwing error:
System.Net.WebException: The underlying connection was closed: Could not
establish trust relationship with remote server.
--
Dany Couillard, ing.