How to force renewal of Icinga2 client cert?

Starting about 2-3 years ago, Icinga2 included a feature to auto-renew client certificates, which is good. But my servers that are older than that still have their original 15-year certificates on them, and I’d like to replace them with new ones that have the newer validity period. I tried using icinga2 pki request with a ticket number but it tells me that the current certificate is still valid and skips automated renewal.

What step(s)/command(s) should I be using to manually renew client certs?

  • Version used (icinga2 --version) r2.14.3-1
  • Operating System and version: RHEL 9

Sounds a bit stupid but:

  • move the certificate to different location
  • request a new one

The old certificate will still be valid, there is no revocation list by default. so it makes not much sense to renew a still valid certificate.

It’s not stupid if it works. :slight_smile:

That said, I at least partly agree with you, so the obvious follow up question is, how do I revoke a certificate/add it to the revocation list? Which is actually also relevant in general, since I periodically decommission systems as well and it would make sense to revoke those certs when the system gets decommissioned.

Thanks for the response!

Thanks for that pointer, I’ll have to think about what makes the most sense. I might just want to regenerate my entire Icinga2 CA/PKI infrastructure so that I can have everything on shorter validity certs and then implement the CRL going forward. I know I saw instructions for that somewhere, hopefully it’s not too arduous.