diff options
author | David Kupka <dkupka@redhat.com> | 2014-09-03 09:07:16 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-09-05 10:51:42 +0200 |
commit | 6d94cdf250c470bf77a0e769ea30a90fa5815b81 (patch) | |
tree | 499bd2ba7ddc4cd5311b35070e8f7db9a85b8b88 /ipaserver/install/ipa_cacert_manage.py | |
parent | 62a255949377d4a6b3cc197462223b5b0495d18d (diff) | |
download | freeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.tar.gz freeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.tar.xz freeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.zip |
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 <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/ipa_cacert_manage.py')
-rw-r--r-- | ipaserver/install/ipa_cacert_manage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/ipa_cacert_manage.py b/ipaserver/install/ipa_cacert_manage.py index 64602c835..c681261e8 100644 --- a/ipaserver/install/ipa_cacert_manage.py +++ b/ipaserver/install/ipa_cacert_manage.py @@ -153,8 +153,8 @@ class CACertManage(admintool.AdminTool): raise admintool.ScriptError("CA is not configured on this system") nss_dir = ca.dogtag_constants.ALIAS_DIR - criteria = (('cert_storage_location', nss_dir, certmonger.NPATH), - ('cert_nickname', self.cert_nickname, None)) + criteria = {'cert-database': nss_dir, + 'cert-nickname': self.cert_nickname} self.request_id = certmonger.get_request_id(criteria) if self.request_id is None: raise admintool.ScriptError( |