From 152691cf746133ea650eda7147706117e44814c6 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 10 Oct 2023 14:56:29 +0000 Subject: [PATCH] fixes #3332 Closes #3332 Merge request studip/studip!2262 --- cli/Commands/OAuth2/Keys.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/Commands/OAuth2/Keys.php b/cli/Commands/OAuth2/Keys.php index 8274dbc7b48..609ac4e6b5a 100644 --- a/cli/Commands/OAuth2/Keys.php +++ b/cli/Commands/OAuth2/Keys.php @@ -47,8 +47,8 @@ class Keys extends Command $this->storeKeyContentsToFile($encryptionKey, $this->generateEncryptionKey()); $keys = RSA::createKey(4096); - $this->storeKeyContentsToFile($publicKey, $keys['publickey']); - $this->storeKeyContentsToFile($privateKey, $keys['privatekey']); + $this->storeKeyContentsToFile($publicKey, $keys->getPublicKey()->toString('PKCS1')); + $this->storeKeyContentsToFile($privateKey, $keys->toString('PKCS1')); $io->info('Schlüsseldateien erfolgreich angelegt.'); -- GitLab