...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Use a certificate from a memory buffer.
boost::system::error_code use_certificate( const const_buffer & certificate, file_format format, boost::system::error_code & ec);
This function is used to load a certificate into the context from a buffer.
The buffer containing the certificate.
The certificate format (ASN.1 or PEM).
Set to indicate what error occurred, if any.
Calls SSL_CTX_use_certificate
or SSL_CTX_use_certificate_ASN1.