I am setting up ifw.
I generated the certificate with icinga2 pki and copied it to the windows server.
I don’t understand the point of the scheduled task “renewcertificate”.
How can this script get renewed certificate from a Linux server or did i misunderstand something.
Can somebody explain.
thanks n advance
Hello, thank you for your message.
The renew certificate task from Icinga for Windows will by default look for the Icinga Agent on the system and use this certificate to renew the Icinga for Windows certificate.
If you are not running the Icinga Agent and still want to use the Linux Icinga certificates (.crt files)
You can copy the certificate locally to the Windows machine. Afterwards you have to modify your Background daemon to load a custom certificate:
Register-IcingaBackgroundDaemon -Command 'Start-IcingaWindowsRESTApi' -Arguments @{ '-CertFile' = '<path\to\your\file\.crt' }
Once done, restart Icinga for Windows
Restart-IcingaForWindows
The scheduled task will run automatically and renew the certificate file whenever the local certificate is chaning. To makes things even easier, you could also setup a domain policy to push certificates to the host and use either
- -CertThumbprint
or
- -CertFilter
as arguments for Starting the REST-Api daemon. This arguments will look on the local Windows Certificate store then for certificates.