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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/Commands/OAuth2/Keys.php b/cli/Commands/OAuth2/Keys.php
index c9c0738..8274dbc 100644
--- a/cli/Commands/OAuth2/Keys.php
+++ b/cli/Commands/OAuth2/Keys.php
@@ -2,7 +2,7 @@
namespace Studip\Cli\Commands\OAuth2;
-use phpseclib\Crypt\RSA;
+use phpseclib3\Crypt\RSA;
use Studip\OAuth2\Container;
use Studip\OAuth2\KeyInformation;
use Studip\OAuth2\SetupInformation;
@@ -46,7 +46,7 @@ class Keys extends Command
$this->storeKeyContentsToFile($encryptionKey, $this->generateEncryptionKey());
- $keys = (new RSA())->createKey(4096);
+ $keys = RSA::createKey(4096);
$this->storeKeyContentsToFile($publicKey, $keys['publickey']);
$this->storeKeyContentsToFile($privateKey, $keys['privatekey']);