Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In case your Checkmk Server is using https, and you're using the agent bakery, your SSL Certificate will be expired expiring at some time. If the CA for the new certificate stays the same, this should be no problem for the agent bakery.

However, if the CA changes you would have to follow some extra steps.

Step-by-step guide

  1. get Get new certificate
  2. check Check if the certificate chain changed. If:
    1. yes: jump to step 3
    2. no: jump to step 4
  3. the The chain changed
    1. add the new chain to the Agent Updater (do NOT replace the old chain!)
    2. bake and sign agents
    3. wait untill all agents updated
    4. jump so step 4
  4. the The chain did not change or step 3 is done
    1. restrict Auto Updates to only 2 or 3 hosts, so if something goes wrong you do not mess up everything
    2. deploy the new certificate to the Apache server
    3. check for the correct cert and chain by using a browser
    4. make sure Auto Update works for the test hosts
    5. if the chain chagned changed (see step 3) remove the old chain from the updater rule, bake & sign agents, and see if everything works with the test hosts
    6. remove the restriction to the test hosts and update all agents.


P.S. to step 3: As this article is written (v2.0.0p8), Checkmk cannot handle the chain correctly if it is contained i a single file. All certs (client, root, intermediate) need to be added separately.

If you have everyting in one .crt file this is quite easy: just upload the file, copy the rule. Checkmk automatically converts the file to text, and now you can split the certificates at ther "BEGIN/END Certificate" sections. 

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("agent_bakery","https") and type = "page" and space = "KB"
labelshttps agent_bakery

...