Skip to content
Snippets Groups Projects
Commit 1a700319 authored by Nico Mexis's avatar Nico Mexis Committed by Jan-Hendrik Willms
Browse files

Fix OAuth 2.0 keys being generated with PKCS1

Closes #4223

Merge request studip/studip!3055
parent cf95f93f
No related branches found
No related tags found
No related merge requests found
...@@ -47,8 +47,8 @@ class Keys extends Command ...@@ -47,8 +47,8 @@ class Keys extends Command
$this->storeKeyContentsToFile($encryptionKey, $this->generateEncryptionKey()); $this->storeKeyContentsToFile($encryptionKey, $this->generateEncryptionKey());
$keys = RSA::createKey(4096); $keys = RSA::createKey(4096);
$this->storeKeyContentsToFile($publicKey, $keys->getPublicKey()->toString('PKCS1')); $this->storeKeyContentsToFile($publicKey, (string) $key->getPublicKey());
$this->storeKeyContentsToFile($privateKey, $keys->toString('PKCS1')); $this->storeKeyContentsToFile($privateKey, (string) $key);
$io->info('Schlüsseldateien erfolgreich angelegt.'); $io->info('Schlüsseldateien erfolgreich angelegt.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment