From 6d94cdf250c470bf77a0e769ea30a90fa5815b81 Mon Sep 17 00:00:00 2001 From: David Kupka Date: Wed, 3 Sep 2014 09:07:16 +0200 Subject: Use certmonger D-Bus API instead of messing with its files. FreeIPA certmonger module changed to use D-Bus to communicate with certmonger. Using the D-Bus API should be more stable and supported way of using cermonger than tampering with its files. >=certmonger-0.75.13 is needed for this to work. https://fedorahosted.org/freeipa/ticket/4280 Reviewed-By: Jan Cholasta --- ipa-client/ipaclient/ipa_certupdate.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ipa-client') diff --git a/ipa-client/ipaclient/ipa_certupdate.py b/ipa-client/ipaclient/ipa_certupdate.py index 4199a293b..8e7fe0470 100644 --- a/ipa-client/ipaclient/ipa_certupdate.py +++ b/ipa-client/ipaclient/ipa_certupdate.py @@ -122,11 +122,10 @@ class CertUpdate(admintool.AdminTool): dogtag_constants = dogtag.configured_constants() nickname = 'caSigningCert cert-pki-ca' - criteria = ( - ('cert_storage_location', dogtag_constants.ALIAS_DIR, - certmonger.NPATH), - ('cert_nickname', nickname, None), - ) + criteria = { + 'cert-database': dogtag_constants.ALIAS_DIR, + 'cert-nickname': nickname, + } request_id = certmonger.get_request_id(criteria) if request_id is not None: timeout = api.env.startup_timeout + 60 -- cgit