title: https client get with cpp-netlib using a client certificate and password
body: <p>I am trying to use cppnetlib, or even the boost asio libraries to connect to do a simple url get and pull the resulting page down.</p>
  
  <p>I have gotten it to work with http, and even https usign cppnetlib but I need to supply a client certitifcate that takes a password.. Unforntuntley I am required to use the older v0.10 cppnetlib.</p>
  
  <p>Is this possible to do. I think the answer is to create my own _io_service and custome configure it for the https request with cert and password and then supply that to the boost::network::http:client constructor. The below works in http, and will work for https without a cert requirement.</p>
  
  <pre><code>std::string url = "http://www.boost.org";
  std::string certFile = "C:\\cert\\mycert.p12";
  std::string password = "MyPassWord";
  try {
          http::client client;
          http::client::request request(url);
          http::client::response response = client-&gt;get(request);
  
          std::string resultText = static_cast&lt;std::string&gt;(body(response));
          std::cout &lt;&lt; resultText &lt;&lt; std::endl;
          delete client;
      }
      catch (std::exception &amp;e) {
          std::cerr &lt;&lt; "Caught something connecting " &lt;&lt; e.what() &lt;&lt; std::endl;
      }
  </code></pre>