Icinga for Windows Agent setup: ca.crt

Hi everyone,

I’m trying to setup the Icinga for Windows Agent, I can’t start the service. It says it can’t find the file “C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt”. Does anyone know where this file comes from or how it is generated? I’ve run the wizard and it seemed to work (no errors reported) but maybe something went wrong. Or I missed a step.

PS C:\WINDOWS\system32> Test-IcingaAgentConfig -WriteStackTrace | Out-Null
[Failed]: Icinga Agent configuration contains errors. Run this command for getting a detailed error report: “Test-IcingaAgentConfig -WriteStackTrace | Out-Null”
[2021-06-10 17:31:03 +1000] information/cli: Icinga application loader (version: v2.12.4)
[2021-06-10 17:31:03 +1000] information/cli: Loading configuration file(s).
[2021-06-10 17:31:03 +1000] information/ConfigItem: Committing config item(s).
[2021-06-10 17:31:03 +1000] information/ApiListener: My API identity: jamespc
[2021-06-10 17:31:03 +1000] critical/SSL: Error loading and verifying locations in ca key file ‘C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt’: 33558530, “error:02001002:system library:fopen:No such file or directory”
[2021-06-10 17:31:03 +1000] critical/config: Error: Cannot make SSL context for cert path: ‘C:\ProgramData\icinga2\var\lib\icinga2/certs//jamespc.crt’ key path: ‘C:\ProgramData\icinga2\var\lib\icinga2/certs//jamespc.key’ ca path: ‘C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt’.
Location: in C:/ProgramData/icinga2/etc/icinga2/features-enabled/…/features-available/api.conf: 1:0-1:23
C:/ProgramData/icinga2/etc/icinga2/features-enabled/…/features-available/api.conf(1): object ApiListener “api” {