aboutsummaryrefslogtreecommitdiff
path: root/cli/Commands/OAuth2/Keys.php
diff options
context:
space:
mode:
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.');