aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorNico Mexis <nico.mexis@kabelmail.de>2024-05-30 17:28:32 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-06-04 12:12:36 +0200
commit29c82f5188a188333b376ba47fe33d1a2cd3ee56 (patch)
treee81f11f0dccc50763203f628ebdd037d14e10d37 /cli
parent2b2b7ac573b4455a6729add9f05ac7386a9c5fba (diff)
Fix OAuth 2.0 keys being generated with PKCS1
Closes #4223 Merge request studip/studip!3055
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 609ac4e..93282ba 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->getPublicKey()->toString('PKCS1'));
- $this->storeKeyContentsToFile($privateKey, $keys->toString('PKCS1'));
+ $this->storeKeyContentsToFile($publicKey, (string) $key->getPublicKey());
+ $this->storeKeyContentsToFile($privateKey, (string) $key);
$io->info('Schlüsseldateien erfolgreich angelegt.');