Hello,
when using the ansible callback module I get the following error message:
[WARNING]: Sending data to Foreman at https://foreman.home failed for uptimekuma.fritz.box: HTTPSConnectionPool(host='foreman.home', port=443): Max retries exceeded with
url: /api/v2/hosts/facts (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2622)')))
I used the following command to setup the certificates in foreman (linebreaks for better readability):
foreman-installer --foreman-server-ssl-cert /etc/letsencrypt/live/foreman.home/cert.pem
--foreman-server-ssl-chain /etc/letsencrypt/live/foreman.home/chain.pem
--foreman-server-ssl-key /etc/letsencrypt/live/foreman.home/privkey.pem
--foreman-proxy-foreman-ssl-ca /etc/ssl/certs/ca-certificates.crt
--puppet-server-foreman-ssl-ca /etc/ssl/certs/ca-certificates.crt
This is my ansible.cfg:
[defaults]
callback_whitelist = foreman
[callback_foreman]
url = 'https://foreman.home'
ssl_cert = /etc/letsencrypt/live/foreman.home/cert.pem
ssl_key = /etc/letsencrypt/live/foreman.home/privkey.pem
ssl_ca = /etc/letsencrypt/live/foreman.home/fullchain.pem
verify_certs = 0
The cert got applied successfully to the web-ui, but when I tried to debug the issue, it looks like foreman-proxy is using a different certificate, is this correct? Do I maybe need to setup the certificates different?
Thanks!