Problem:
Good afternoon. I am performing the installation of foreman 3.4 with self-signed ssl certificates. Before installation, I checked the certificates katello-certs-check - everywhere “ok” , there are no errors. However, when I try to install, I get errors. The installation log is below. P.S. if you refuse to use certificates, there are no errors.
[root@foreman ]# foreman-installer --scenario katello -l NOTICE \
> --certs-server-cert "/root/ca/name.domain.ru.crt" \
> --certs-server-key "/root/ca/device.key" \
> --certs-server-ca-cert "/root/ca/rootCA.pem"
2022-11-28 14:26:02 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-11-28 14:26:06 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-11-28 14:26:06 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-11-28 14:26:15 [NOTICE] [configure] Starting system configuration.
2022-11-28 14:26:31 [NOTICE] [configure] 250 configuration steps out of 1382 steps complete.
2022-11-28 14:26:37 [NOTICE] [configure] 500 configuration steps out of 1384 steps complete.
2022-11-28 14:26:41 [NOTICE] [configure] 750 configuration steps out of 1390 steps complete.
2022-11-28 14:26:42 [NOTICE] [configure] 1000 configuration steps out of 1393 steps complete.
2022-11-28 14:27:12 [NOTICE] [configure] 1250 configuration steps out of 1393 steps complete.
2022-11-28 14:27:21 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-name.domain.ru]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://name.domain.ru/api/v2/hosts?search=name%3D%22name.domain.ru%22
2022-11-28 14:27:21 [ERROR ] [configure] Wrapped exception:
2022-11-28 14:27:21 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2022-11-28 14:27:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-name.domain.ru]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://name.domain.ru/api/v2/hosts?search=name%3D%22name.domain.ru%22
2022-11-28 14:27:22 [ERROR ] [configure] Wrapped exception:
2022-11-28 14:27:22 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2022-11-28 14:27:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[name.domain.ru]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch) in get request to: https://name.domain.ru/api/v2/smart_proxies?search=name%3D%22name.domain.ru%22
2022-11-28 14:27:22 [ERROR ] [configure] Wrapped exception:
2022-11-28 14:27:22 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (Hostname mismatch)
2022-11-28 14:27:24 [NOTICE] [configure] System configuration has finished.
Expected outcome:
Successful installation with certificates (it is necessary that https does not swear)
Foreman and Proxy versions:
3.4
Foreman and Proxy plugin versions:
3.4
Distribution and version:
Other relevant data: