Skip to content

Commit

Permalink
Remove unused hierarchy.select
Browse files Browse the repository at this point in the history
The hierarchy.select param has been removed in PKI 11.5 so
it doesn't need to be updated in renew_ca_cert.in.

Signed-off-by: Endi Sukma Dewata <[email protected]>
Reviewed-By: Rob Crittenden <[email protected]>
Reviewed-By: Florence Blanc-Renaud <[email protected]>
  • Loading branch information
edewata authored and flo-renaud committed Oct 19, 2023
1 parent 5270d58 commit 44349cf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions install/restart_scripts/renew_ca_cert.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import shutil
import traceback

from ipalib.install import certstore
from ipapython import directivesetter
from ipapython import ipautil
from ipalib import api, errors
from ipalib import x509
Expand Down Expand Up @@ -105,23 +104,6 @@ def _main():
"Updating trust on certificate %s failed in %s" %
(nickname, db.secdir))
elif nickname == 'caSigningCert cert-pki-ca':
# Update CS.cfg
cfg_path = paths.CA_CS_CFG_PATH
config = directivesetter.get_directive(
cfg_path, 'subsystem.select', '=')
if config == 'New':
syslog.syslog(syslog.LOG_NOTICE, "Updating CS.cfg")
if cert.is_self_signed():
directivesetter.set_directive(
cfg_path, 'hierarchy.select', 'Root',
quotes=False, separator='=')
else:
directivesetter.set_directive(
cfg_path, 'hierarchy.select', 'Subordinate',
quotes=False, separator='=')
else:
syslog.syslog(syslog.LOG_NOTICE, "Not updating CS.cfg")

# Remove old external CA certificates
for ca_nick, ca_flags in db.list_certs():
if ca_flags.has_key:
Expand Down

0 comments on commit 44349cf

Please sign in to comment.