diff --git a/src/CryptKey.php b/src/CryptKey.php index 3a3bdd9d4..dbf372fe5 100644 --- a/src/CryptKey.php +++ b/src/CryptKey.php @@ -75,7 +75,7 @@ public function __construct(string $keyPath, protected ?string $passPhrase = nul if ($keyPermissionsCheck === true) { // Verify the permissions of the key $keyPathPerms = decoct(fileperms($this->keyPath) & 0777); - if (in_array($keyPathPerms, ['400', '440', '600', '640', '660'], true) === false) { + if (in_array($keyPathPerms, ['600', '660', '770'], true) === false) { trigger_error( sprintf( 'Key file "%s" permissions are not correct, recommend changing to 600 or 660 instead of %s',