Ho to install foreman with own CA/Cert. I’ve generated the certs with FreeIPA and veryfied it with openssl verify.
If I do this:
foreman-installer --foreman-server-ssl-cert /etc/pki/tls/certs/HTTP_amon.home.chao5.net.crt --foreman-server-ssl-ca /etc/ipa/ca.crt --foreman-server-ssl-key /etc/pki/tls/private/HTTP_amon.home.chao5.net.key --foreman-proxy-foreman-ssl-ca /etc/ipa/ca.crt --puppet-server-foreman-ssl-ca /etc/ipa/ca.crt
I get this error:
2022-02-11 16:22:20 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-amon.home.chao5.net]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) in get request to: https://amon.home.chao5.net/api/v2/hosts?search=name%3D"amon.home.chao5.net"
2022-02-11 16:22:20 [ERROR ] [configure] Wrapped exception:
2022-02-11 16:22:20 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
The certificates/key are 100% ok. What I’m doing wrong?
TiA
Greetz