mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 12:40:06 -03:30
minor tinkering to isolated key generation
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# Copyright (c) 2015 Ansible, Inc.
|
# Copyright (c) 2015 Ansible, Inc.
|
||||||
# All Rights Reserved
|
# All Rights Reserved
|
||||||
import datetime
|
import datetime
|
||||||
import sys
|
|
||||||
|
|
||||||
from cryptography.hazmat.backends import default_backend
|
from cryptography.hazmat.backends import default_backend
|
||||||
from cryptography.hazmat.primitives import serialization
|
from cryptography.hazmat.primitives import serialization
|
||||||
@@ -19,7 +18,7 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **kwargs):
|
def handle(self, *args, **kwargs):
|
||||||
if getattr(settings, 'AWX_ISOLATED_PRIVATE_KEY', False):
|
if getattr(settings, 'AWX_ISOLATED_PRIVATE_KEY', False):
|
||||||
print settings.AWX_ISOLATED_PUBLIC_KEY
|
print settings.AWX_ISOLATED_PUBLIC_KEY
|
||||||
sys.exit(1)
|
return
|
||||||
|
|
||||||
key = rsa.generate_private_key(
|
key = rsa.generate_private_key(
|
||||||
public_exponent=65537,
|
public_exponent=65537,
|
||||||
|
|||||||
Reference in New Issue
Block a user