Critical/cli: ! Invalid ticket for CN. critical/cli: Failed to fetch signed certificate from master

Hello everyone, I have a problem with the “sudo icinga2 node wizard” command line:

(Yes, the names of my host and my server are the same)

[root@PLC7Cbis ~]# sudo icinga2 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]:

Starting the Agent/Satellite setup routine…

Please specify the common name (CN) [PLC7Cbis]:

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): Server IP address

Do you want to establish a connection to the parent node from this node? [Y/n]:
Please specify the master/satellite connection information:
Master/Satellite endpoint host (IP address or FQDN): Server IP address
Master/Satellite endpoint port [5665]:

Add more master/satellite endpoints? [y/N]:
Parent certificate information:

Version: 3
Subject: CN = PLC7Cbis
Issuer: CN = Icinga CA
Valid From: Jun 21 07:13:41 2022 GMT
Valid Until: Jul 23 07:13:41 2023 GMT
Serial: 79:40:37:09:27:47:44:bd:f6:ec:c6:42:c7:23:e2:52:6b:0d:e3:cb

Signature Algorithm: sha256WithRSAEncryption
Subject Alt Names: PLC7Cbis
Fingerprint: 2D E5 C2 23 12 B1 3A 6C 5F B6 69 41 E2 D3 C5 91 57 7A F6 24 0B E9 96 23 26 4B D4 CA 6E AC 5E 75

Is this information correct? [y/N]: Y

Please specify the request ticket generated on your Icinga 2 master (optional).
(Hint: # icinga2 pki ticket --cn ‘PLC7Cbis’): 36f011db2a51ab0f4489a6baf08c85d6e111c436
> critical/cli: !!! Invalid ticket for CN ‘PLC7Cbis’.
> critical/cli: Failed to fetch signed certificate from master ‘Server IP address, 5665’. Please try again.

Please specify the request ticket generated on your Icinga 2 master (optional).

On my server :

[root@PLC7Cbis ~]# sudo icinga2 pki ticket --cn IP.Host
36f011db2a51ab0f4489a6baf08c85d6e111c436

I found the solution: I replaced the ip of the host by its name.
Like that :

[root@PLC7Cbis ~]# sudo icinga2 pki ticket --cn PLC7Cbis

1 Like