summaryrefslogtreecommitdiffstats
path: root/base/common/python
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-06-02 18:46:01 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-06-02 19:10:16 +0200
commit29dbed75f1c214a065cd3bcc438d0584fd980d4f (patch)
tree9d4d9692cf6d2ceb34a6b3bcc551b28d2aa0f681 /base/common/python
parent08bf26f786b8d233382c6fedfad5d33d8c11d78f (diff)
downloadpki-29dbed75f1c214a065cd3bcc438d0584fd980d4f.tar.gz
pki-29dbed75f1c214a065cd3bcc438d0584fd980d4f.tar.xz
pki-29dbed75f1c214a065cd3bcc438d0584fd980d4f.zip
Excluded backslash from random password.
The backslash is no longer used for generating random password since it's causing SSL hanshake failure. https://pagure.io/dogtagpki/issue/2676 Change-Id: I2e63769b16fc3fa617b27dccb7b85f139714a411
Diffstat (limited to 'base/common/python')
-rw-r--r--base/common/python/pki/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/common/python/pki/__init__.py b/base/common/python/pki/__init__.py
index 0478b325f..1a6f5c267 100644
--- a/base/common/python/pki/__init__.py
+++ b/base/common/python/pki/__init__.py
@@ -46,9 +46,10 @@ CERT_HEADER = "-----BEGIN CERTIFICATE-----"
CERT_FOOTER = "-----END CERTIFICATE-----"
# Valid punctuation characters for random password.
-# This is identical to string.punctuation minus the equal
-# sign since it's used as delimiter in password.conf.
-PUNCTUATIONS = '!"#$%&\'()*+,-./:;<>?@[\\]^_`{|}~'
+# This is based on string.punctuation except:
+# - equal sign since it's used as delimiter in password.conf
+# - backslash since it's causing SSL handshake failure
+PUNCTUATIONS = '!"#$%&\'()*+,-./:;<>?@[]^_`{|}~'
def read_text(message,