title: Using libcurl & SSL
body: <p>I've found there is really very little information around on this topic. I already have a dll making successful posts using libcurl.</p>
  
  <p>I've compiled libcurl with openssl for ssl functionality.</p>
  
  <p>Here is an exert of my original curl setup.</p>
  
  <pre><code>    curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer);
  
      //curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER , 1);
      //curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST , 1);
      //curl_easy_setopt(curl, CURLOPT_CAINFO , "./ca.cert");
  
      curl_easy_setopt(handle, CURLOPT_POSTFIELDS, cParam); 
      curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, strlen(cParam));
      curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);
      curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, Request::writer);   
      curl_easy_setopt(handle, CURLOPT_WRITEDATA, &amp;buffer); 
      curl_easy_setopt(handle, CURLOPT_URL, cURL);
  </code></pre>
  
  <p>My question to those who've done this before, is it as easy as just adding those lines above to get SSL to work (as long as the certificate exists)? Or is it more complicated?</p>
  
  <p>The funny thing is I'm not completely sure how SSL works. I've never worked with it before. Do I need to store a key in my application and send it with each request? Anyway my main question was the first. Thank you in advance.</p>