Hello Icinga2-Community,
I am currently running an icinga instance on a debian machine. I am trying to connect a windows-server in a DMZ to my Master in a local network. I copied the master ca to the windows machine to avoid the needed connection for my agent to request a certificate. it worked all fine and checks were running through. But i tried to change the naming of my windows-machine. It was defined in zones.d/master as something like PHOTONSERVER.domain.local. I now renamed it to photonserver.domain.local, ran the node wizard again on my windowsmachine, and told the new name to the wizard. Now im getting Problems with my Certificates.
/var/log/icinga2/icinga2.log:
[2019-11-15 13:49:04 +0100] information/ApiListener: Reconnecting to endpoint 'photonserver.domain.local' via host '10.0.0.19' and port '5665'
[2019-11-15 13:49:04 +0100] information/HttpServerConnection: HTTP client disconnected (from [172.18.0.2]:47132)
[2019-11-15 13:49:05 +0100] warning/ApiListener: Certificate validation failed for endpoint 'photonserver.domain.local': code 18: self signed certificate
[2019-11-15 13:49:05 +0100] information/ApiListener: New client connection for identity 'photonserver.domain.local' to [10.0.0.19]:5665 (certificate validation failed: code 18: self signed certificate)
[2019-11-15 13:49:05 +0100] information/ApiListener: Finished reconnecting to endpoint 'photonserver.domain.local' via host '10.0.0.19' and port '5665'
[2019-11-15 13:49:05 +0100] information/JsonRpcConnection: Received certificate request for CN 'photonserver.domain.local' not signed by our CA.
[2019-11-15 13:49:05 +0100] information/JsonRpcConnection: Certificate request for CN 'photonsrv.ssc-os.local' is pending. Waiting for approval.
When i use icinga2 ca list, it lists a request, but when im signing it it doesnt change anything. But the entry in ca list is gone. Do you Guys have any idea?
photonserver.domain.local.conf File:
object Zone "photonserver.domain.local" {
endpoints = [ "photonserver.domain.local" ]
parent = "master"
}
object Endpoint "photonserver.domain.local" {
host = "10.0.0.19"
}
object Host "photonserver.domain.local" {
import "generic-host"
vars.location = "Infra"
address = "10.0.0.19"
vars.os = "Windows"
vars.check_type = "Agent"
# vars.disk_win_path = ["C:"]
vars.commandendpoint = "photonserver.domain.local"
}
Wizard executed on Windowsmachine:
C:\WINDOWS\system32>"C:\Program Files\ICINGA2\sbin\icinga2.exe" node wizard
Welcome to the Icinga 2 Setup Wizard!
We will guide you through all required configuration details.
Please specify if this is an agent/satellite setup ('n' installs a master setup) [Y/n]: Y
Starting the Agent/Satellite setup routine...
Please specify the common name (CN) [photonserver]: photonserver.domain.local
Please specify the parent endpoint(s) (master or satellite) where this node should connect to:
Master/Satellite Common Name (CN from your master/satellite node): master.DOMAIN.local #DOMAIN is written big just because we failed a little bit creating the CA on the master node. But it is no problem
Do you want to establish a connection to the parent node from this node? [Y/n]: n
Connection setup skipped. Please configure your parent node to
connect to this node by setting the 'host' attribute for the node Endpoint object.
Add more master/satellite endpoints? [y/N]: N
No connection to the parent node was specified.
Please copy the public CA certificate from your master/satellite
into 'C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt' before starting Icinga 2.
Found public CA certificate in 'C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt'.
Please verify that it is the same as on your master/satellite.
Please specify the API bind host/port (optional):
Bind Host []:
Bind Port []: 5665
Accept config from parent node? [y/N]: y
Accept commands from parent node? [y/N]: y
Reconfiguring Icinga...
Local zone name [photonserver.domain.local]:
Parent zone name [master]:
Default global zones: global-templates director-global
Do you want to specify additional global zones? [y/N]:
Do you want to disable the inclusion of the conf.d directory [Y/n]: n
Done.
Now restart your Icinga 2 daemon to finish the installation!
Kind Regards