I just tried it again, just to be shure. Uninstalled the agent, deleted ProgrammData\checkmk and installed an old client 2.2.0p18.
Registering Client:
PS C:\Users\administrator> ECHO Y | & "c:\Program Files (x86)\checkmk\service\cmk-agent-ctl.exe" register --hostname $env:computername --server checkmk_rzrb.xxx.yyy:8004 --site rzrb --user agentregistration --password ****
Attempting to register at checkmk_rzrb.xxx.yyy, port 8004. Server certificate details:
PEM-encoded certificate:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
Issued by:
Site 'rzrb' local CA
Issued to:
rzrb
Validity:
From Tue, 14 Jun 2022 07:47:48 +0000
To Sun, 15 Oct 3020 07:47:48 +0000
Do you want to establish this connection? [Y/n]
> Registration complete.
Registering updater:
PS C:\Users\administrator> & "c:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register -i rzrb -H $env:computername -U cmkadmin -P **** -v
Finalizing installation, please wait.Going to register agent at deployment server
Applying new update URL https://checkmk_rzrb.xxx.yyy/rzrb/check_mk/ from deployment server
Successfully registered agent of host "VWS11" for deployment.
You can now update your agent by running 'check_mk_agent.exe updater -v'
Saved your registration settings to C:\ProgramData\checkmk\agent\config\cmk-update-agent.state.
update of the agent:
PS C:\Users\administrator> & "c:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater -v
Starting Update mode as plugin.
Getting target agent configuration for host 'VWS11' from deployment server
Target state (from deployment server):
Agent available: True
Signatures: 1
Target hash: 65cd49541d312c86
Downloaded agent has size 38420992 bytes.
Signature check OK.
Transferred MSI package to the agent's installation dir.Awaiting upcoming automatic update performed by agent.
<<<cmk_update_agent_status:sep(0)>>>
{"last_check": 1718694982.8431132, "last_update": null, "aghash": null, "pending_hash": "65cd49541d312c86", "update_url": "https://checkmk_rzrb.xxx.yyy/rzrb/check_mk", "trusted_certs": {"0": {"corrupt": false, "not_after": "20510902173204Z", "signature_algorithm": "sha1WithRSAEncryption", "common_name": "beat.guggisberg"}}, "error": null}
run the updated agent update:
PS C:\Users\administrator> & "c:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater -v
Updated the certificate store "C:\ProgramData\checkmk\agent\config\cas\all_certs.pem" with 1 certificate(s)
Starting Update mode as plugin.
Getting target agent configuration for host 'VWS11' from deployment server
Failed to connect to Agent Bakery: HTTPSConnectionPool(host='checkmk_rzrb.xxx.yyy', port=443): Max retries exceeded with url: /rzrb/check_mk/deploy_agent.py (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'checkmk_rzrb.xxx.yyy'. (_ssl.c:1000)")))
Retrying with fallback URL: https://checkmk_rzrb.xxx.yyy/rzrb/check_mk
<<<cmk_update_agent_status:sep(0)>>>
{"last_check": 1718694982.8431132, "last_update": 1718266734.0, "aghash": "65cd49541d312c86", "pending_hash": null, "update_url": "https://checkmk_rzrb.xxx.yyy/rzrb/check_mk", "trusted_certs": {"0": {"corrupt": false, "not_after": "2051-09-02T17:32:04+00:00", "signature_algorithm": "sha1", "common_name": "beat.guggisberg"}}, "error": "HTTPSConnectionPool(host='checkmk_rzrb.xxx.yyy', port=443): Max retries exceeded with url: /rzrb/check_mk/deploy_agent.py (Caused by SSLError(SSLCertVerificationError(1, \"[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'checkmk_rzrb.xxx.yyy'. (_ssl.c:1000)\")))"}
Failed to connect to Agent Bakery: HTTPSConnectionPool(host='checkmk_rzrb.xxx.yyy', port=443): Max retries exceeded with url: /rzrb/check_mk/deploy_agent.py (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'checkmk_rzrb.xxx.yyy'. (_ssl.c:1000)")))
Retrying with fallback URL: https://checkmk_rzrb.xxx.yyy/rzrb/check_mk