<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>compile &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/compile/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sat, 01 Nov 2014 11:33:39 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>compile &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[WebDAV, SSL Handshake, OwnCloud, CloudFlare, and Ubuntu 12.04]]></title>
		<link>https://shkspr.mobi/blog/2014/11/webdav-ssl-handshake-owncloud-cloudflare-and-ubuntu-12-04/</link>
					<comments>https://shkspr.mobi/blog/2014/11/webdav-ssl-handshake-owncloud-cloudflare-and-ubuntu-12-04/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sat, 01 Nov 2014 11:33:39 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[NaBloPoMo]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=11212</guid>

					<description><![CDATA[Right, that&#039;s enough keyword stuffing!  I&#039;ve been trying to mount an OwnCloud instance via WebDAV.  I kept receiving the error  Mounting failed. SSL handshake failed: SSL error: sslv3 alert handshake failure  Or  SSL handshake failed: SSL alert received: Handshake failed  The route of this problem seems to be that the version of libneon (the WebDAVS connector library) shipped with Ubuntu 12.04…]]></description>
										<content:encoded><![CDATA[<p><img src="https://shkspr.mobi/blog/wp-content/uploads/2014/11/OwnCloud-Logo.png" alt="OwnCloud Logo" width="595" height="311" class="aligncenter size-full wp-image-11215">
Right, that's enough keyword stuffing!</p>

<p>I've been trying to mount an OwnCloud instance via WebDAV.  I kept receiving the error</p>

<pre>Mounting failed. SSL handshake failed: SSL error: sslv3 alert handshake failure</pre>

<p>Or</p>

<pre>SSL handshake failed: SSL alert received: Handshake failed</pre>

<p>The route of this problem seems to be that the version of libneon (the WebDAVS connector library) shipped with Ubuntu 12.04 doesn't play nicely with the SSL certificates issued by CloudFlare.</p>

<p>Here's the solution I discovered.</p>

<p>Grab <a href="http://www.webdav.org/neon/neon-0.30.1.tar.gz">libneon 30.1</a> - and extract it to a directory.</p>

<p>Compile</p>

<pre>./configure --prefix=/usr --enable-shared --with-ssl=openssl --disable-static
make
sudo make install
</pre>

<p>We now need to replace the old libneon-gnutls.so - and we want the end result to look like</p>

<pre>/usr/lib/libneon-gnutls.so.27 -&gt; /usr/lib/libneon.so.27
/usr/lib/libneon.so -&gt; libneon.so.27.3.1
/usr/lib/libneon.so.27 -&gt; libneon.so.27.3.1
</pre>

<p>First, back up the old version.</p>

<pre>sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.old</pre>

<p>Then, in /usr/lib/</p>

<pre>sudo ln -s /usr/lib/libneon.so.27.3.1 libneon.so.27
sudo ln -s /usr/lib/libneon-gnutls.so.27.3.1 libneon.so
sudo ln -s /usr/lib/libneon.so.27 libneon-gnutls.so.27
</pre>

<p>Then, to mount the directory.</p>

<pre>sudo mount -t davfs -o uid=me,gid=users https://example/owncloud/remote.php/webdav/ /mount/remote</pre>

<p>(Where "me" is your user name.)</p>

<p>That made everything work!</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=11212&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2014/11/webdav-ssl-handshake-owncloud-cloudflare-and-ubuntu-12-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
