diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-10-10 14:56:29 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-10-10 14:56:29 +0000 |
| commit | 152691cf746133ea650eda7147706117e44814c6 (patch) | |
| tree | 1646c9bdc37208ccba7ed80ba069ebb1d5801a00 /cli | |
| parent | d99fc722cb97d47d6de0380724bfdfb93a5c20e9 (diff) | |
fixes #3332
Closes #3332
Merge request studip/studip!2262
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Commands/OAuth2/Keys.php | 4 |
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.'); |
