We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7bbce3 + 4c63cc6 commit 4c7bddfCopy full SHA for 4c7bddf
oidc_provider/management/commands/creatersakey.py
@@ -1,6 +1,5 @@
1
from Cryptodome.PublicKey import RSA
2
from django.core.management.base import BaseCommand
3
-
4
from oidc_provider.models import RSAKey
5
6
@@ -9,7 +8,7 @@ class Command(BaseCommand):
9
8
10
def handle(self, *args, **options):
11
try:
12
- key = RSA.generate(1024)
+ key = RSA.generate(2048)
13
rsakey = RSAKey(key=key.exportKey('PEM').decode('utf8'))
14
rsakey.save()
15
self.stdout.write(u'RSA key successfully created with kid: {0}'.format(rsakey.kid))
0 commit comments