aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-10-10 14:56:29 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-10-10 16:56:53 +0200
commitd192729dd235bf53e4d2a6358c718b22b326a440 (patch)
treee05947f0194e55182cf4d2355f7086656d5783e7 /cli
parent7370be336801b17c51393f73a4b795b741422bc2 (diff)
fixes #3332
Closes #3332 Merge request studip/studip!2262
Diffstat (limited to 'cli')
-rw-r--r--cli/Commands/OAuth2/Keys.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/Commands/OAuth2/Keys.php b/cli/Commands/OAuth2/Keys.php
index 8274dbc..609ac4e 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.');