Generate a config file for ctld

Ticket: #4929