Skip to content

Commit

Permalink
Relocate system certs validation
Browse files Browse the repository at this point in the history
Previously the system certs validation was only executed
in certain installation scenarios. The validation has been
moved such that it will be executed in all installation
scenarios.
  • Loading branch information
edewata committed Jul 26, 2023
1 parent d95b99f commit 8f896af
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def spawn(self, deployer):
deployer.update_system_certs(nssdb, subsystem)
subsystem.save()

deployer.validate_system_certs(nssdb, subsystem)

elif len(subsystems) > 1:

for s in subsystems:
Expand Down Expand Up @@ -246,12 +244,13 @@ def spawn(self, deployer):

try:
system_certs = deployer.setup_system_certs(nssdb, subsystem)
subsystem.save()

deployer.validate_system_certs(nssdb, subsystem)

finally:
nssdb.close()

subsystem.save()

if config.str2bool(deployer.mdict['pki_security_domain_setup']) and \
subsystem.type == 'CA':
logger.info('Setting up subsystem user')
Expand Down

0 comments on commit 8f896af

Please sign in to comment.