mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
ipatests: remove ipacertbase option from test CSR configuration
The issue was found during test review. If the cert base contains spaces, openssl req fails. https://fedorahosted.org/freeipa/ticket/4559 Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
parent
d88a12f1f5
commit
0277a89825
@ -7,7 +7,6 @@ req_extensions = exts
|
||||
|
||||
[ dn ]
|
||||
commonName = "{username}"
|
||||
{ipacertbase}
|
||||
|
||||
[ exts ]
|
||||
subjectAltName=email:{username}@{ipadomain}
|
||||
|
@ -30,18 +30,12 @@ CERT_OPENSSL_CONFIG_TEMPLATE = os.path.join(BASE_DIR, 'data/usercert.conf.tmpl')
|
||||
CERT_RSA_PRIVATE_KEY_PATH = os.path.join(BASE_DIR, 'data/usercert-priv-key.pem')
|
||||
|
||||
|
||||
CERT_SUBJECT_BASE = (
|
||||
api.Command.config_show()
|
||||
['result']['ipacertificatesubjectbase'][0]
|
||||
)
|
||||
|
||||
SMIME_USER_INIT_PW = u'Change123'
|
||||
SMIME_USER_PW = u'Secret123'
|
||||
|
||||
|
||||
def generate_user_csr(username, domain=None):
|
||||
csr_values = dict(
|
||||
ipacertbase=CERT_SUBJECT_BASE,
|
||||
ipadomain=domain if domain else api.env.domain,
|
||||
username=username)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user