Problem: While setting up a new Foreman 3.5 instance we are unable to configure the installer to use our Let’s Encrypt certificates for the webserver only. We want to do this to avoid any warnings because of self-signed certificates. The server’s local hostname is foreman.example.loc
- this should be used for the Puppet clients. For actually browsing the web UI we want to use foreman.example.com
with our LE certificate.
I read the setup guide multiple times and tried different configs, but there are so many SSL sections and I have no idea how the different components are interacting.
Expected outcome: We tried to copy our setup Foreman 1.24 setup and set foreman_url
, server_ssl_chain
, server_ssl_cert
, server_ssl_key
& server_foreman_url
to the new values. But when I try to run the installer afterwards I get
2023-02-06 17:30:44 [NOTICE] [configure] Starting system configuration.
2023-02-06 17:30:50 [NOTICE] [configure] 250 configuration steps out of 1219 steps complete.
2023-02-06 17:30:50 [NOTICE] [configure] 500 configuration steps out of 1224 steps complete.
2023-02-06 17:30:50 [NOTICE] [configure] 750 configuration steps out of 1228 steps complete.
2023-02-06 17:31:00 [NOTICE] [configure] 1000 configuration steps out of 1228 steps complete.
2023-02-06 17:31:14 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.example.loc]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://foreman.example.loc/api/v2/smart_proxies?search=name%3D%22foreman.example.loc%22
2023-02-06 17:31:14 [ERROR ] [configure] Wrapped exception:
2023-02-06 17:31:14 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2023-02-06 17:31:14 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.example.loc]: Failed to call refresh: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://foreman.example.loc/api/v2/smart_proxies?search=name%3D%22foreman.example.loc%22
2023-02-06 17:31:14 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.example.loc]: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://foreman.example.loc/api/v2/smart_proxies?search=name%3D%22foreman.example.loc%22
2023-02-06 17:31:14 [ERROR ] [configure] Wrapped exception:
2023-02-06 17:31:14 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2023-02-06 17:31:14 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-foreman.example.loc]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://foreman.example.loc/api/v2/hosts?search=name%3D%22foreman.example.loc%22
2023-02-06 17:31:14 [ERROR ] [configure] Wrapped exception:
2023-02-06 17:31:14 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2023-02-06 17:31:16 [NOTICE] [configure] System configuration has finished.
Foreman and Proxy versions: 3.5.1
Foreman and Proxy plugin versions: ?
Distribution and version: AlmaLinux 8.7
Other relevant data: