#5095 Be able to request certificates without certmonger service running
Closed: Fixed None Opened 8 years ago by pvoborni.

Trying to get a certificate in a kick start fails because the certmonger daemon cannot be started by systemd because systemd doesn't allow services to run in a chroot. This is affecting ipa-client-install in a kickstart enrollment.

As a workaround we'd like to be able to request a certificate without starting the daemon, understanding that it's a one-shot deal and that monitoring won't take place until reboot.

Now that the IPA install scripts are calling out to the cert monger daemon directly over D-Bus, 'getcert' isn't invoked, so it's no longer in a position to handle all of this automatically.

Most likely this means we need to add logic to the IPA install scripts to detect when the system bus isn't running, and for that case, fire up a private copy of the daemon to talk to, preferably shutting it down cleanly after it's told certmonger what it needs (and maybe attempting to run 'restorecon' afterward).


This shall be done within 4.2.x line.

master:

  • 2defc48 cermonger: Use private unix socket when DBus SystemBus is not available.
  • e384aad ipa-client-install: Do not (re)start certmonger and DBus daemons.

ipa-4-2:

  • 2b56cb1 cermonger: Use private unix socket when DBus SystemBus is not available.
  • d3f2fd4 ipa-client-install: Do not (re)start certmonger and DBus daemons.

Metadata Update from @pvoborni:
- Issue assigned to dkupka
- Issue set to the milestone: FreeIPA 4.2.1

7 years ago

Login to comment on this ticket.

Metadata