Groups | Blog | Home
all groups > dotnet security > june 2006 >

dotnet security : https and httplistener


Rok
6/16/2006 8:15:29 PM
Hi,

I have written a small web server using the HttpListener from .NET
framework 2.0. What I cannot get him to do is communicate over ssl.
Apparently I don't have to do anything in my code besides setting the
HttpListener to listen to https://localhost/ instead of
http:/localhost/.
I have created CA and server certificate using Openssl and also tried
with makecert but could not get it to work. i get the following message
in firefox:
"The connection was interrupted
The connection to localhost was interrupted while the page was
loading."

I have no IIS installed on my computer nor do I want to have it. So I
cannot use IIS admin utilities for setting up these things. I have used
httpcfg to register my server certificate but without success. I am
only using a server certificate, no client ones...

If anyone has an idea how to set it up, i will be grateful indefinitely
since i have lost 2 days over it already.

thanks,
Rok
Pieter Philippaerts
6/17/2006 9:38:50 PM
Perhaps this link could be useful:
http://blogs.msdn.com/adarshk/archive/2004/11/10/255467.aspx

Regards,
Pieter Philippaerts


[quoted text, click to view]

Dominick Baier [DevelopMentor]
6/18/2006 5:19:13 PM
try selfssl for test certs:

http://support.microsoft.com/?id=840671
http://www.visualwin.com/SelfSSL/

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]

AddThis Social Bookmark Button