Use a certificate from a memory buffer.
void use_certificate( const const_buffer & certificate, file_format format);
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).
Thrown on failure.
Calls SSL_CTX_use_certificate
or SSL_CTX_use_certificate_ASN1.