diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-11-10 16:24:22 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@dhcp-31-13.brq.redhat.com> | 2014-11-11 16:13:52 +0100 |
commit | 2639997dfee43d66e94ef9b5441289816c465e7d (patch) | |
tree | 6a945b35e5fe6473d4dbfa9d9f8dc195e54caa3e /ipaplatform/base | |
parent | 8248f696275e2e63dab860a25467e2868aa17036 (diff) | |
download | freeipa-2639997dfee43d66e94ef9b5441289816c465e7d.tar.gz freeipa-2639997dfee43d66e94ef9b5441289816c465e7d.tar.xz freeipa-2639997dfee43d66e94ef9b5441289816c465e7d.zip |
Fix CA certificate backup and restore
Backup and restore /etc/pki/ca-trust/source/ipa.p11-kit.
Create /etc/ipa/nssdb after restore if necessary.
https://fedorahosted.org/freeipa/ticket/4711
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaplatform/base')
-rw-r--r-- | ipaplatform/base/paths.py | 2 | ||||
-rw-r--r-- | ipaplatform/base/tasks.py | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py index 01505594a..90dfdef0c 100644 --- a/ipaplatform/base/paths.py +++ b/ipaplatform/base/paths.py @@ -92,7 +92,7 @@ class BasePathNamespace(object): PAM_LDAP_CONF = "/etc/pam_ldap.conf" PASSWD = "/etc/passwd" ETC_PKI_CA_DIR = "/etc/pki-ca" - SYSTEMWIDE_CA_STORE = "/etc/pki/ca-trust/source/anchors/" + SYSTEMWIDE_IPA_CA_CRT = "/etc/pki/ca-trust/source/anchors/ipa-ca.crt" IPA_P11_KIT = "/etc/pki/ca-trust/source/ipa.p11-kit" NSS_DB_DIR = "/etc/pki/nssdb" PKI_TOMCAT = "/etc/pki/pki-tomcat" diff --git a/ipaplatform/base/tasks.py b/ipaplatform/base/tasks.py index f2ba81f44..9b15119c4 100644 --- a/ipaplatform/base/tasks.py +++ b/ipaplatform/base/tasks.py @@ -55,6 +55,15 @@ class BaseTaskNamespace(object): return + def reload_systemwide_ca_store(self): + """ + Reloads the systemwide CA store. + + Returns True if the operation succeeded, False otherwise. + """ + + return True + def insert_ca_certs_into_systemwide_ca_store(self, ca_certs): """ Adds CA certificates from 'ca_certs' to the systemwide CA store |