From 3901bbb748643198b6fe214eaa17f9430926897e Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Thu, 11 Jul 2024 12:21:57 -0500 Subject: [PATCH] Replicating https://github.com/lcatlett/oauth2-server/pull/2 --- src/CryptKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',