The code compiles and start to execute but I get a SSL Exception: Configuration error: no certificate file has been specified. How or where can I set the path to the certificate?
Here is a part of my code: (At line ?? the SSL Exception is thrown.)
- Code: Select all
int main(const std::vector<std::string>& args)
{
if (_helpRequested)
{
displayHelp();
}
else
{
// get parameters from configuration file
unsigned short port = (unsigned short) config().getInt("EchoServer.port", 9977);
// set-up a server socket
SecureServerSocket svs(port);
// set-up a SocketReactor...
SocketReactor reactor;
// ... and a SocketAcceptor
SocketAcceptor<SecureEchoServiceHandler> acceptor(svs, reactor);
// run the reactor in its own thread so that we can wait for
// a termination request
Thread thread;
thread.start(reactor);
// wait for CTRL-C or kill
waitForTerminationRequest();
// Stop the SocketReactor
reactor.stop();
thread.join();
}
return Application::EXIT_OK;
}
At the constructor of the ServerApplication class I execute
- Code: Select all
Poco::Net::initializeSSL();
- Code: Select all
Poco::Net::uninitializeSSL();
Can anyone help me with that problem? Does anyone have a sample project that implements a multithreaded SSL server with POCO?





