aboutsummaryrefslogtreecommitdiff
path: root/cli/Commands/OAuth2/Keys.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /cli/Commands/OAuth2/Keys.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'cli/Commands/OAuth2/Keys.php')
-rw-r--r--cli/Commands/OAuth2/Keys.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/Commands/OAuth2/Keys.php b/cli/Commands/OAuth2/Keys.php
index 609ac4e..9132ad6 100644
--- a/cli/Commands/OAuth2/Keys.php
+++ b/cli/Commands/OAuth2/Keys.php
@@ -46,9 +46,9 @@ 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'));
+ $key = RSA::createKey(4096);
+ $this->storeKeyContentsToFile($publicKey, (string) $key->getPublicKey());
+ $this->storeKeyContentsToFile($privateKey, (string) $key);
$io->info('Schlüsseldateien erfolgreich angelegt.');