summaryrefslogtreecommitdiffstats
path: root/base/server/python
diff options
context:
space:
mode:
Diffstat (limited to 'base/server/python')
-rw-r--r--base/server/python/pki/server/deployment/pkiparser.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/base/server/python/pki/server/deployment/pkiparser.py b/base/server/python/pki/server/deployment/pkiparser.py
index e05e0be31..df04ff8f0 100644
--- a/base/server/python/pki/server/deployment/pkiparser.py
+++ b/base/server/python/pki/server/deployment/pkiparser.py
@@ -583,12 +583,6 @@ class PKIConfigParser:
self.deployer.flatten_master_dict()
- # Generate random 'pin's for use as security database passwords
- # and add these to the "sensitive" key value pairs read in from
- # the configuration file
- pin_low = 100000000000
- pin_high = 999999999999
-
instance = pki.server.PKIInstance(self.mdict['pki_instance_name'])
instance.load()
@@ -604,11 +598,9 @@ class PKIConfigParser:
# otherwise, generate a random password
else:
- self.mdict['pki_pin'] = \
- random.randint(pin_low, pin_high)
+ self.mdict['pki_pin'] = pki.generate_password()
- self.mdict['pki_client_pin'] = \
- random.randint(pin_low, pin_high)
+ self.mdict['pki_client_pin'] = pki.generate_password()
pkilogging.sensitive_parameters = \
self.mdict['sensitive_parameters'].split()