title: c++ Boost asio error: no shared cipher
body: <p>I am currently setting a RESTful API with boost asio.</p>
  
  <p>Connecting from a client works fine via HTTP. But if I try to connect via HTTPS I get an error on the server side: "no shared cipher".
  The error seems to come from the openssl implementation, but I have no idea what to make of it. My first guess would be that that no cypher algorithm is set, but I cannot see how this can be done in asio.</p>
  
  <p>This is what I put in the code and where the error occurs:</p>
  
  <pre><code>auto acceptHandler = boost::bind(&amp;self::onAccept, this, connection,
                                   boost::asio::placeholders::error);
  connection-&gt;async_accept(m_acceptor, acceptHandler);
  
  m_sslContext.set_options(
          context::default_workarounds | context::no_sslv2 | context::single_dh_use);
  m_sslContext.use_certificate_file(filename, context::pem);
  m_sslContext.use_private_key_file(filename, context::pem);
  </code></pre>
  
  <p>Anyone ever had this before or got it working?</p>