I'm pleased to announce that the XSP web server now supports
SSL connections! XSP is a web server from the
Mono Project
developed mostly by
Gonzalo Paniagua
from Novell in C#. I utilize the XSP code in my
Application Server Project
to host web applications on Windows and Linux. I wanted to
provide the ability to serve secure pages from within the
Application Server without the need for Apache or IIS.
Sébastien Pouliot
(also from Novell) had already done most of the heavy lifting
by developing a SslServerStream. The majority of the work was
to integrate this into the XSP framework. In the process, I
ran across a
bug
in the SslCipherSuite and submitted a patch to the mono
mailing list. My changes to XSP have recently been
committed
to the Mono SVN tree. Another change to XSP is the seperation
of the web hosting code into a seperate DLL from the main
console application (Mono.WebServer.dll). This allows others
to easily embed the XSP server in their applications.
Here is an example of xsp running with SSL enabled:
> mono xsp.exe --https --cert server.cer --pkfile server.pvk --pkpwd pass --root ~/samples
To generate a server certificate & private key:
> makecert -r -eku 1.3.6.1.5.5.7.3.1 -n "CN=server" -sv server.pvk server.cer
( from Sebastien Pouliot's blog:
http://pages.infinit.net/ctech/20041129-0607.html
)
NOTE: This support is currently only available if you build
from
source.