SSL context meant to be used with TcpConnection and friends.
SslContext(const SslContext &)=delete
Do not allow copy construction.
SslContext & operator=(const SslContext &)=delete
Do not allow assignment.
static void sslPrintErrors(const std::string &fname)
Print the latest SSL errors.
bool setCertificateFiles(const std::string &keyfile, const std::string &crtfile)
Set which key and certificate file to use for connections.
bool setCaCertificateFile(const std::string &cafile)
Set which CA certificate file to use for verifying certificates.
bool caCertificateFileIsSet(void) const
Find out if the CA certificate file is set.