1.9. Secure Connections via SSL/TLS

ulxmlrpcpp contains the following classes for secured connections:


A simple class for SSL connections from the core library. It only provides basic functionality and will probably only serve as a starting point for production quality classes.


An improved SSL connection class from a contribution. It provides enhanced handling of certificates.

See the according examples files under tests/contrib how to use this class.

Both SSL classes are used similar to the standard connection classes. The only difference is to set up the cryptographic data you need:

  SSLConnection conn (true, host, port);
  conn.setCryptographyData("password", "foo-cert.pem", "foo-cert.pem");
  HttpProtocol prot(&conn);
  HttpServer http_server (&prot, num_threads, wbxml);