Extract public key from private pem file at runtime

This commit is contained in:
ErickSkrauch
2024-06-14 03:03:10 +02:00
parent ca304261a3
commit 0a666e1e12
12 changed files with 33 additions and 80 deletions

View File

@ -34,7 +34,6 @@ return [
'hmacKey' => getenv('JWT_USER_SECRET'),
'privateKeyPath' => getenv('JWT_PRIVATE_KEY_PATH') ?: __DIR__ . '/../../data/certs/private.pem',
'privateKeyPass' => getenv('JWT_PRIVATE_KEY_PASS') ?: null,
'publicKeyPath' => getenv('JWT_PUBLIC_KEY_PATH') ?: __DIR__ . '/../../data/certs/public.pem',
'encryptionKey' => getenv('JWT_ENCRYPTION_KEY'),
],
'tokensFactory' => [