class ssl_example_context - 5cript/attender GitHub Wiki
class ssl_example_context
class ssl_example_context
: public attender::ssl_context_interface
This is an example implementation for an ssl context, that uses server certificates, but no client certificates.
A passphrase can be provided. You should probably use your own implementation for the ssl_context_interface, as I cannot guarantee having no security flaws in this implementation. Therefore I chose to call this "ssl_example_context", even though it is a typical implementation for regular HTTPS applications.
It only supports PEM format keys, not ASN1, even though boost does.
Summary
| Members | Descriptions |
|---|---|
public ssl_example_context(std::string const & private_key_file,std::string const & certificate_file,std::string passphrase) |
|
public ssl_example_context(std::string const & private_key_file,std::string const & certificate_file,password_callback_type passphrase_provider) |
|
public ssl_example_context(std::string const & private_key_file,std::string const & certificate_file) |
|
public ~ssl_example_context() = default |
|
public virtual boost::asio::ssl::context * get_ssl_context() |