Foreman Error after Puppet upgrade


I have upgraded Puppet server from version 5 to version 7,
and I’m currently running Foreman v1.2.
After the upgrade completed I have enter foreman UI
and into the smart-proxy view and when clicking the Puppet CA tab, I’m seeing this error:

Failure: ERF50-5345 [Foreman::WrappedException]: Unable to connect ([ProxyAPI::ProxyException]: ERF12-5356 [ProxyAPI::ProxyException]: Unable to get PuppetCA certificates ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy https://my-puppet-server:8443/puppet/ca)

Does Foreman v1.2 not support Puppet 7?
How can I solve this issue?

Any help will be appreciated

Expected outcome:
Smart-Proxy will show not show errors and show all the puppetserver certificates

Foreman and Proxy versions:
Foreman Version 1.20.2

Foreman and Proxy plugin versions:

Distribution and version:
RHEL 7.9

Other relevant data:

I think Puppet 7 support was added in Foreman 3.x or perhaps 2.5, so 1.20 is very old and simply upgrading to a current version should solve the problem.