Skip to content

Commit

Permalink
Clean up security_databases.py
Browse files Browse the repository at this point in the history
The code that configures CS.cfg params in security_databases.py
has been moved into subsystem_layout.py.
  • Loading branch information
edewata committed Jan 12, 2024
1 parent 043b1d3 commit 28782fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,10 @@ def spawn(self, deployer):
logger.info('Skipping NSS database creation')
return

instance = self.instance
instance.load()

subsystem = instance.get_subsystem(deployer.subsystem_type.lower())

if config.str2bool(deployer.mdict['pki_use_pss_rsa_signing_algorithm']):
deployer.update_rsa_pss_algorithms(subsystem)

deployer.import_server_pkcs12()
deployer.import_clone_pkcs12()
deployer.install_cert_chain()
deployer.import_ds_ca_cert()

deployer.init_system_cert_params(subsystem)
subsystem.save()

deployer.init_client_nssdb()

def destroy(self, deployer):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ def spawn(self, deployer):
subsystem = instance.get_subsystem(subsystem_name)

deployer.init_subsystem(subsystem)

if config.str2bool(deployer.mdict['pki_use_pss_rsa_signing_algorithm']):
deployer.update_rsa_pss_algorithms(subsystem)

deployer.init_system_cert_params(subsystem)

subsystem.save()

def destroy(self, deployer):
Expand Down

0 comments on commit 28782fa

Please sign in to comment.