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+studip@gmail.com>2024-05-30 17:28:32 +0000
commit1a70031983001e10469b2d186dcf30de10aec3db (patch)
tree3c9c4f1057feab93d4822f4a11ee3adbf2f8e8ea /cli
parentcf95f93f5c363da6565efb6b5be628de1845daa3 (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.');