title: OpenSSL WinINET client
body: <p>I have a working client and a server which, once finished would have a valid SSL certificate.</p>
  
  <p>At the moment, for the mean of testing, I'm just disabling the need of SSL verification in the client by adding the flags <code>INTERNET_FLAG_IGNORE_CERT_CN_INVALID</code> and <code>SECURITY_FLAG_IGNORE_UNKNOWN_CA</code> like this:</p>
  
  <pre><code>HINTERNET hRequest = HttpOpenRequest(hConnection,
             "GET","index.html",
             NULL,NULL,NULL,
             INTERNET_FLAG_RELOAD|
             INTERNET_FLAG_EXISTING_CONNECT
             #ifdef  __HTTPS__
             | INTERNET_FLAG_SECURE |INTERNET_FLAG_IGNORE_CERT_CN_INVALID|SECURITY_FLAG_IGNORE_UNKNOWN_CA
             #endif
             ,
             dwContext);
  </code></pre>
  
  <p>I got this to work perfectly on my laptop. Now I'm trying to use it on my PC. same code exactly. copied and pasted the files (both Visual Studio Professional 2008), now I'm getting <code>12045</code> error. which means <code>Invalid Certificate Authority</code></p>
  
  <p>I tried disabling Windows Firewall, didn't work. both computer connected to the same router</p>
  
  <p>Any ideas what can cause this?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong>
  Basically what happens is the same as described <a href="http://support.microsoft.com/kb/825828" rel="nofollow">here by Microsoft</a>, only this article is for <code>Windows CE</code></p>