SSL - Problem connecting WebService by IP number

Hi!
I have strange situation after deploing WebService
in client environment. WebService is written in .NET 2.0,
resides on separate site (Win 2003) and is secured by SSL.

And when client applications try to connect using
IP number (https://192.168.100.100:8892/Service.asmx)
I get strange error "System.Net.WebException: The underlying connection
was closed: An unexpected error occurred on a send. --->
System.IO.IOException: The handshake failed due to an unexpected packet
format."
- on most machines, but on 2 machines connecting goes OK.

But when I connect using host name (https://host:8892/Service.asmx)
everything works OK...

Why connecting by IP can cause an error? Where to search for a reason?

Regards

Mrozik
Mrozik [ Do, 19 Juli 2007 10:24 ] [ ID #1773215 ]

Re: SSL - Problem connecting WebService by IP number

What is the "common name" (cn property) of the certificate? If the cn has
the "host name" then you'd get an error connecting by IP address (the
address youare connecting to does not match the address embedded in the
certificate)

Cheers
Ken


"Mrozik" <mrozik.p [at] interia.pl> wrote in message
news:op.tvpdmiucy3yzc4 [at] n1054.mshome.net...
> Hi!
> I have strange situation after deploing WebService
> in client environment. WebService is written in .NET 2.0,
> resides on separate site (Win 2003) and is secured by SSL.
>
> And when client applications try to connect using
> IP number (https://192.168.100.100:8892/Service.asmx)
> I get strange error "System.Net.WebException: The underlying connection
> was closed: An unexpected error occurred on a send. --->
> System.IO.IOException: The handshake failed due to an unexpected packet
> format."
> - on most machines, but on 2 machines connecting goes OK.
>
> But when I connect using host name (https://host:8892/Service.asmx)
> everything works OK...
>
> Why connecting by IP can cause an error? Where to search for a reason?
>
> Regards
>
> Mrozik
Ken Schaefer [ Mo, 23 Juli 2007 01:51 ] [ ID #1776248 ]

Re: SSL - Problem connecting WebService by IP number

On Mon, 23 Jul 2007 01:51:47 +0200, Ken Schaefer
<kenREMOVE [at] THISadOpenStatic.com> wrote:

> What is the "common name" (cn property) of the certificate? If the cn
> has the "host name" then you'd get an error connecting by IP address
> (the address youare connecting to does not match the address embedded in
> the certificate)

Why application installed on 2 machines can connect by IP?

What should be common name of certificate to enable communicating
by IP - different from host name?

regards

Mrozik


>
> Cheers
> Ken
>
>
> "Mrozik" <mrozik.p [at] interia.pl> wrote in message
> news:op.tvpdmiucy3yzc4 [at] n1054.mshome.net...
>> Hi!
>> I have strange situation after deploing WebService
>> in client environment. WebService is written in .NET 2.0,
>> resides on separate site (Win 2003) and is secured by SSL.
>>
>> And when client applications try to connect using
>> IP number (https://192.168.100.100:8892/Service.asmx)
>> I get strange error "System.Net.WebException: The underlying connection
>> was closed: An unexpected error occurred on a send. --->
>> System.IO.IOException: The handshake failed due to an unexpected packet
>> format."
>> - on most machines, but on 2 machines connecting goes OK.
>>
>> But when I connect using host name (https://host:8892/Service.asmx)
>> everything works OK...
>>
>> Why connecting by IP can cause an error? Where to search for a reason?
>>
>> Regards
>>
>> Mrozik
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mrozik [ So, 05 August 2007 09:25 ] [ ID #1787399 ]
Webserver » microsoft.public.inetserver.iis.security » SSL - Problem connecting WebService by IP number

Vorheriges Thema: IIS Error - HTTP Error 401.1 - Unauthorized: Access is denied....
Nächstes Thema: CSS won't work in IIS7/.NET