Unable to interact with puppet API

I have a machine hosting a foreman server and a machine hosting a puppet server.
I installed a smart proxy to allow the exchange of information between the two servers.
Communication between the two servers seems OK (green V in the status)

On my puppet server, I enabled the following features:

  • Logs
  • PuppetCA
  • Puppet

I can see them on the CLI foreman overview.

The Logs feature work great, and I can retrieve features information with a “curl https://puppet:8888/features”.

But when I am trying to retrieve the environments and certificates present on the puppet server, I have the following error :

Erreur : ERF50-5345 [Foreman::WrappedException]: Impossible de se connecter ([ProxyAPI::ProxyException]: ERF12-5356 [ProxyAPI::ProxyException]: Impossible d’obtenir les certificats PuppetCA ([RestClient::NotAcceptable]: 406 Not Acceptable) pour le proxy http://puppet:8188/puppet/ca)

Erreur : ERF50-5345 [Foreman::WrappedException]: Impossible de se connecter ([ProxyAPI::ProxyException]: ERF12-2749 [ProxyAPI::ProxyException]: Impossible d’obtenir les environnements Puppet ([RestClient::NotAcceptable]: 406 Not Acceptable) pour le proxy http://puppet:8188/puppet)

I tried in “http” mode and in “https” mode but I get the same error each time.

Do you have any ideas to solve my problem?

Technical information :
OS : CentOS 7.8
Foreman server version : 2.1.2
Smart proxy version on puppet server : 2.1.2
Puppet server version : 6.5.0
Puppet agent version on foreman server : 5.5.21

Thanks in advance,

Oub