Associating vCenter Host with Foreman

I wanted to associate my vCenter Host with my foremann.
I tought the best way to do this would be using Puppet.

Foreman is installet on CentOS7 and the vCenter host are using Ubuntu 18.04 and CentOS 6/7.
The Smart Proxy was automatically configuret by Foreman. Also Puppet
The Puppet Config on the Foreman host in vi /etc/puppetlabs/puppet/puppet.conf is:

basemodulepath = /etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules
certname =
codedir = /etc/puppetlabs/code
environmentpath = /etc/puppetlabs/code/environments
hiera_config = $confdir/hiera.yaml
hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
logdir = /var/log/puppetlabs/puppet
pluginfactsource = puppet:///pluginfacts
pluginsource = puppet:///plugins
privatekeydir = $ssldir/private_keys { group = service }
reports = foreman
rundir = /var/run/puppetlabs
server =
show_diff = false
ssldir = /etc/puppetlabs/puppet/ssl
vardir = /opt/puppetlabs/puppet/cache

classfile = $statedir/classes.txt
default_schedules = false
environment = production
localconfig = $vardir/localconfig
masterport = 8140

Is there everything right?

How should the Config on the vCenter host look like?

I also have the following error massage in my smartproxy Options:

Fehler: ERF50-5345 [Foreman::WrappedException]: Verbindung kann nicht hergestellt werden ([ProxyAPI::ProxyException]: ERF12-5356 [ProxyAPI::ProxyException]: PuppetCA-Zertifikate konnten nicht geladen werden ([RestClient::NotAcceptable]: 406 Not Acceptable) für Proxy