diff --git a/apps/files_encryption/lib/keymanager.php b/apps/files_encryption/lib/keymanager.php
index 8ee7820b169147d2a136e3f29e837eda0f4dbca5..74462a0d1ed479279126bf657b4ef7ab129740ea 100755
--- a/apps/files_encryption/lib/keymanager.php
+++ b/apps/files_encryption/lib/keymanager.php
@@ -38,9 +38,14 @@ class Keymanager {
 	public static function getPrivateKey( \OC_FilesystemView $view, $user ) {
 	
 		$path =  '/' . $user . '/' . 'files_encryption' . '/' . $user.'.private.key';
-		
+
+        $proxyStatus = \OC_FileProxy::$enabled;
+        \OC_FileProxy::$enabled = false;
+
 		$key = $view->file_get_contents( $path );
-		
+
+        \OC_FileProxy::$enabled = $proxyStatus;
+        
 		return $key;
 	}