title: openconnect, ssl connection failure
body: <p>I have ocserv setup on a vm, but when trying to connect through openconnect app getting these errors,
  it will be helpful if any solution, tried various ocserv config file modifications but non-sucessfull</p>
  
  <p>Logs:</p>
  
  <pre><code>` Disconnected 
   STAT: attempt=O; first-NEVER; prev=NEVER 
   STAT: connect=o; first-NE-VER; prev=NEVER 
   STAT: cancel=o; first=NEVER; prev=NEVER 
   LIB: POST https://&lt;IP/hostname&gt;/ 
   L1B: Attempting to connect to server &lt;IP/hostname&gt;
   LIB: Connected to &lt;IP :443/hostname&gt; 
   LIB: SSL negotiation with &lt;IP/hostname&gt; 
   L1B: Server certificate verify failed: certificate does not match hostname CALLBACK: onValidatePeerCert
   LIB: SSI- connection failure: The operation timed out 
   LIB: Failed to open HTTPS connection to &lt;IP/hostname&gt; 
   Error obtaining cookie 
   VPN terminated with errors`
  </code></pre>
  
  <p>Update::: after few changes this is the current error im getting,
  setup description: Vm has debian 9 installed with ocserv installed, also certificates. trying to connect useing openconnect android app, device has mobile data enabled with low speed.</p>
  
  <p>Log:</p>
  
  <pre><code>   Disconnected
     STAT: attempt=O; first-NEVER; prev=NEVER
     STAT: connect=o; first-NE-VER; prev=NEVER
     STAT: cancel=o; first=NEVER; prev=NEVER
     LIB: POST https://&lt;IP/hostname&gt;/ 
     L1B: Attempting to connect to server &lt;IP/hostname&gt;
     LIB: Connected to &lt;IP :443/hostname&gt; 
     L1B: SSL_negotiation with &lt;IP/hostname&gt;
     L1B: SSL_connection failure: The operation timed out
     L1B: Failed to open HTTPS connection to &lt;IP/hostname&gt;
     Error obtaining cookie
     VPN terminated with errors
  </code></pre>
  
  <p>Is their any SSL issue? or do I need to give 3rd party SSL to ocserv, if so how to install 3rd party SSL to ocserv.</p>
  
  <p>Thanks in advance</p>