diff --git a/src/Stores/KeyStore.php b/src/Stores/KeyStore.php index d43e1e8..b7bf40e 100644 --- a/src/Stores/KeyStore.php +++ b/src/Stores/KeyStore.php @@ -49,7 +49,7 @@ class KeyStore yield File\createDirectoryRecursively($dir, 0755); yield File\write($file, $key->toPem()); - yield File\changeOwner($file, 0600); + yield File\changePermissions($file, 0600); } catch (FilesystemException $e) { throw new KeyStoreException('Could not save key: ' . $e->getMessage(), 0, $e); }