I am using the asio C++ library. When creating a SSL server socket, I have the below working code based on the sample, for specifying the server certificates.
http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/example/ssl/server.cpp
context_.set_options(
boost::asio::ssl::context::default_workarounds
| boost::asio::ssl::context::no_sslv2
| boost::asio::ssl::context::single_dh_use);
context_.set_password_callback(boost::bind(&server::get_password, this));
context_.use_certificate_chain_file("server.pem");
context_.use_private_key_file("server.pem", boost::asio::ssl::context::pem);
context_.use_tmp_dh_file("dh512.pem");
Is it possible to use the API somehow with a single certificate here, as opposed to loading 3 files as above?