Puppet agent not longer reporting to Foreman

For some reason all my Puppet agent has stopped reporting to my Foreman server even though the agents do not show any errors pulling catalog from the Puppet server (Foreman). This seem to have happened the last time I updated my Foreman server to the latest version of 1.22. Now that I noticed I have tried updating to latest 1.22.x, re-running foreman-installer, restarting puppetserver and upgrading to 1.23.x. None of which seems to work.

Puppet agent indicates report was sent

Debug: HTTP PUT https://foreman.example.com:8140/puppet/v3/report/host1.example.com returned 200 OK

Ok I figured out what the problem was. Puppetserver was not able to read the custom certificate on the filesystem.