Fix certificate renewal scripts to work with separate CA DS instance.

https://fedorahosted.org/freeipa/ticket/3805

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Jan Cholasta
2013-07-23 10:19:42 +00:00
committed by Petr Viktorin
parent c5e61c85e6
commit 4c761108e8
3 changed files with 44 additions and 22 deletions

View File

@@ -90,9 +90,7 @@ def main():
# Done withing stopped_service context, CA restarted here
update_cert_config(nickname, cert)
if nickname == 'subsystemCert cert-pki-ca':
update_people_entry('pkidbuser', cert)
update_people_entry(cert)
if nickname == 'auditSigningCert cert-pki-ca':
# Fix trust on the audit cert

View File

@@ -43,7 +43,7 @@ def main():
dercert = db.get_cert_from_db('ipaCert', pem=False)
# Load it into dogtag
update_people_entry('ipara', dercert)
update_people_entry(dercert)
attempts = 0
updated = False