From 29dbed75f1c214a065cd3bcc438d0584fd980d4f Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 2 Jun 2017 18:46:01 +0200 Subject: 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 --- base/common/python/pki/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'base/common/python') 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, -- cgit