What is the easiest way to generate and transfer the Foreman host certs to a fresh remote smart proxy during install

I am setting up a remote smart proxy and would like to automate the installation with ansible. In doing so I need to pull the certs from the Foreman Server itself over to the smart proxy or it fails the installation. I usually run puppetserver ca generate --certname servername then transfer the certs manually along with:
*crl.pem /etc/puppetlabs/puppet/ssl/
*ca.pem /etc/puppetlabs/puppet/ssl/certs

I was wondering if there was a way to automate this via ansible and transfer them to the fresh smart proxy.

Foreman and Proxy versions:
Foreman 3.8 and proxy 3.8

Distribution and version:
RHEL 8.9

Other relevant data:
This install of foreman does NOT have katello installed.