title: Mounting webdav shares using davfs2
body: <p>I am trying to mount a SharePoint directory (located on a Windows server) on my Ubuntu machine using davfs2. I get the "Secure connection truncated" error. Following is what I do and the output (with some omissions):</p>
  
  <pre><code>$ sudo mount -t davfs 'https://&lt;server_url&gt;' /mnt/&lt;mount_directory&gt;/
  Please enter the username to authenticate with server
    Username: &lt;username&gt;
  Please enter the password to authenticate user &lt;username&gt; with server
    Password: &lt;password&gt;
  /sbin/mount.davfs: the server certificate is not trusted
    issuer:      &lt;issuer&gt;
    subject:     &lt;subject&gt;
    identity:    &lt;identity&gt;
    fingerprint: &lt;fingerprint&gt;
  You only should accept this certificate, if you can
  verify the fingerprint! The server might be faked
  or there might be a man-in-the-middle-attack.
  Accept certificate for this session? [y,N] y
  /sbin/mount.davfs: Mounting failed.
  Could not read status line: Secure connection truncated
  </code></pre>
  
  <p>Has anyone got an idea what may cause this problem and how to solve it? Will appreciate your help. Thanks.</p>