diff --git a/lib/private/certificatemanager.php b/lib/private/certificatemanager.php
index e07413c127ff0fc762f8c2b9fe41776b0158e52a..3a934945786cfb9c3778f115578f4cf04ce8d020 100644
--- a/lib/private/certificatemanager.php
+++ b/lib/private/certificatemanager.php
@@ -37,7 +37,7 @@ class CertificateManager implements ICertificateManager {
 			//path might not exist (e.g. non-standard OC_User::getHome() value)
 			//in this case create full path using 3rd (recursive=true) parameter.
 			//note that we use "normal" php filesystem functions here since the certs need to be local
-			mkdir($path, 0777, true);
+			mkdir($path, 0700, true);
 		}
 		$result = array();
 		$handle = opendir($path);