Submitted by DaRpH on Tue, 11/06/2007 - 13:57

This maybe a simple and stupid question...
It seems the TCPServer class supports SSL, but is this feature also implemented for the HTTPServer class (alias https:\\...)?
I couldn't find any hint about this in the doxygen doc or in the examples.
Is it possible? Anyone using it? If possible could you please give me a small example or hint ;)
Thanks already.
Tags:

Yes, HTTPServer derives from TCPServer and thereby inherits its functionality.
The easiest way to enable SSL for a server is to just call setSSLKeyfile(). This is a helper function for using PEM-encoded SSL key files. Lower-level control is available through manipulation of asio's ssl_context object. Check out the implementation of setSSLKeyfile(), or the asio documentation for some examples of this. Both PionWebServer and the PionNetUnitTests use the setSSLKeyfile() function to enable SSL support.
- Login or register to post comments
Submitted by Mike Dickey on Fri, 11/30/2007 - 12:45.