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+studip@gmail.com>2023-10-10 14:56:29 +0000
commit152691cf746133ea650eda7147706117e44814c6 (patch)
tree1646c9bdc37208ccba7ed80ba069ebb1d5801a00 /cli
parentd99fc722cb97d47d6de0380724bfdfb93a5c20e9 (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.');