Fixed missing KRA agent cert on replica.
The code that exports the KRA agent certificate has been moved such that it will be executed both on master and replica. https://fedorahosted.org/freeipa/ticket/5174 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
1 parent
c906784ded
commit
c8882f7d1c
1 file changed
+9
-8
@@ -256,6 +256,15 @@ class KRAInstance(DogtagInstance):
|
||||
os.remove(cfg_file)
|
||||
|
||||
shutil.move(paths.KRA_BACKUP_KEYS_P12, paths.KRACERT_P12)
|
||||
|
||||
# export ipaCert with private key for client authentication
|
||||
args = ["/usr/bin/pki",
|
||||
"-d", paths.HTTPD_ALIAS_DIR,
|
||||
"-C", paths.ALIAS_PWDFILE_TXT,
|
||||
"client-cert-show", "ipaCert",
|
||||
"--client-cert", paths.KRA_AGENT_PEM]
|
||||
ipautil.run(args)
|
||||
|
||||
self.log.debug("completed creating KRA instance")
|
||||
|
||||
def __add_ra_user_to_agent_group(self):
|
||||
@@ -330,14 +339,6 @@ class KRAInstance(DogtagInstance):
|
||||
finally:
|
||||
os.remove(filename)
|
||||
|
||||
# export ipaCert with private key for client authentication
|
||||
args = ["/usr/bin/pki",
|
||||
"-d", paths.HTTPD_ALIAS_DIR,
|
||||
"-C", paths.ALIAS_PWDFILE_TXT,
|
||||
"client-cert-show", "ipaCert",
|
||||
"--client-cert", paths.KRA_AGENT_PEM]
|
||||
ipautil.run(args)
|
||||
|
||||
def __add_vault_container(self):
|
||||
sub_dict = {
|
||||
'SUFFIX': self.suffix,
|
||||
|
||||
Reference in new issue
Block a user