I've built a self hosted wcf server, using wsHttpBinding
. I'm running Win 2003 server R2 SP2.
If I configure it to listen on http://localhost:443/MyService
, everything works fine. I can connect to http://localhost:443/MyService
with Internet Explorer, and I get the standard "Bad Request" message
Now, if I try to switch to HTTPS, I'm witnessing a strange phenomenon.
Here's what I've done :
- I've changed my wcf config file from
http://localhost
tohttps://localhost
and fromSecurity=None
toSecurity=Transport
(as explained in numerous wcf tutorials) I've registered my HTTP port like this :
httpcfg delete ssl -i 0.0.0.0:443 httpcfg set ssl -i 0.0.0.0:443 -h ea2e450ef9d4...
Note that the certificate I've used is a "real certificate" (i.e. issued by a trusted CA, namely Comodo). The server responds to ping on the NS mentioned in the certificate.
Now, the following will timeout :
Microsoft Telnet> open localhost 443
Here's the output from netstat
(The Pid '4' is the 'System' process):
netstat -nao
Proto Local Adress Remote Adress State Pid
TCP 0.0.0.0:443 0.0.0.0:0 Listening 4
And here's a screenshot from TCPView captured when I issued the open command in telnet :
alt text http://img26.imageshack.us/img26/3376/tcpview2si6.jpg
I'm a bit puzzled. To me, if netstat
says the server is listening on 443, the telnet connection to 443 shouldn't timeout, and I should have at least a blank prompt, expecting me to type some encrypted stuff :)
So far I've tried to :
- Redo all the steps from scratch following exactly the MSDN tutorial
- Used port 10443 instead of 443
- Disable the firewall
- Use a self signed certificate
I don't know what to try next .. any ideas?