Configuring Red Hat Capsule 6.x with custom SSL certs fails with `Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)) for Capsule xxxxxxxx`
Issue
Running the following command on Capsule server:
satellite-installer --scenario capsule --certs-tar-file "/root/capsule.example.com.tar"
--foreman-proxy-register-in-foreman "true"
--foreman-proxy-foreman-base-url "https://satellite.example.com"
--foreman-proxy-trusted-hosts "satellite.example.com"
--foreman-proxy-trusted-hosts "capsule.example.com"
--foreman-proxy-oauth-consumer-key "xxxxxx"
--foreman-proxy-oauth-consumer-secret "xxxxxx"
it fails with the following error message:
2023-12-04 15:18:19 [ERROR ] [configure] Error making POST request to Foreman at https://satellite.example.com/api/v2/smart_proxies: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)) for Capsule https://capsule.example.com:9090/v2/features Please check the Capsule is configured and running on the host.
2023-12-04 15:18:19 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[capsule.example.com]/ensure: change from 'absent' to 'present' failed: Error making POST request to Foreman at https://satellite.example.com/api/v2/smart_proxies: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)) for Capsule https://capsule.example.com:9090/v2/features Please check the Capsule is configured and running on the host.
Environment
- Red Hat Satellite 6.12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.