certmonger: Use explicit storage format

Add storage='NSSDB' to various places. It makes it a bit easier to track
down NSSDB usage.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Christian Heimes
2018-01-16 13:43:25 +01:00
parent 2d8d5ad8d9
commit 88fd3f9435
5 changed files with 27 additions and 15 deletions

View File

@@ -832,6 +832,7 @@ class DsInstance(service.Service):
cmd = 'restart_dirsrv %s' % self.serverid
certmonger.request_and_wait_for_cert(
certpath=dirname,
storage='NSSDB',
nickname=self.nickname,
principal=self.principal,
passwd_fname=dsdb.passwd_fname,
@@ -839,7 +840,8 @@ class DsInstance(service.Service):
ca='IPA',
profile=dogtag.DEFAULT_PROFILE,
dns=[self.fqdn],
post_command=cmd)
post_command=cmd
)
finally:
if prev_helper is not None:
certmonger.modify_ca_helper('IPA', prev_helper)