mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 16:51:55 -06:00
Fix certmonger search for the CA cert in ipa-certupdate and ipa-cacert-manage
The search criteria did not include the CA agent name. https://fedorahosted.org/freeipa/ticket/3259 Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
7da4873ce0
commit
d04fa16d25
@ -120,6 +120,7 @@ class CertUpdate(admintool.AdminTool):
|
||||
criteria = {
|
||||
'cert-database': dogtag_constants.ALIAS_DIR,
|
||||
'cert-nickname': nickname,
|
||||
'ca-name': 'dogtag-ipa-ca-renew-agent',
|
||||
}
|
||||
request_id = certmonger.get_request_id(criteria)
|
||||
if request_id is not None:
|
||||
|
@ -149,8 +149,11 @@ class CACertManage(admintool.AdminTool):
|
||||
raise admintool.ScriptError("CA is not configured on this system")
|
||||
|
||||
nss_dir = ca.dogtag_constants.ALIAS_DIR
|
||||
criteria = {'cert-database': nss_dir,
|
||||
'cert-nickname': self.cert_nickname}
|
||||
criteria = {
|
||||
'cert-database': nss_dir,
|
||||
'cert-nickname': self.cert_nickname,
|
||||
'ca-name': 'dogtag-ipa-ca-renew-agent',
|
||||
}
|
||||
self.request_id = certmonger.get_request_id(criteria)
|
||||
if self.request_id is None:
|
||||
raise admintool.ScriptError(
|
||||
|
Loading…
Reference in New Issue
Block a user