diff --git a/lib/util.php b/lib/util.php
index e7bdd9e090421b9fa3a28de20ab46213381c87e5..ce426684feaf985bf5f490cdb3329512a73cb536 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -581,6 +581,9 @@ class OC_Util {
 
 		$client = new \Sabre_DAV_Client($settings);
 
+		// for this self test we don't care if the ssl certificate is self signed and the peer cannot be verified.
+		$client->setVerifyPeer(false);
+
 		$return = true;
 		try {
 			// test PROPFIND