Problem: When trying to build machines from Foreman using PXE booting to VMWare, they are suddenly failing with “curl: (60) SSL certificate problem: self-signed certificate in certificate chain”
Expected outcome: Hosts build as normal
Foreman and Proxy versions: Foreman: 3.15.0 / Proxy: 3.15.0 and 3.15.1
On a host not managed or built by Foreman / a Proxy, Curl throws the same “SSL certificate problem: self-signed certificate in certificate chain” error.
Usually, the Foreman/Katello CA is only installed on hosts near the end of the provisioning process (somewhere in KS `%post`) during registration. Because of that, accessing installation media during KS installation via HTTPS cannot work out of the box.
The easy fix would be to switch to plain HTTP for the installation media. Maybe someone just happened to slip a https instead of a http into the IM URL while updating it for a new minor release or something like that?
If this has worked with HTTPS in the past and you need to have this working via HTTPS, I have no clue how this would need to be set up. You would probably need to somehow patch the initrd files to trust the Katello CA, but this is for sure a pretty non-default setup.
So I found a workaround of adding a Global Parameter for “kickstart_kernel_custom_options > String > ‘inst.noverifyssl’” which seems to allow the machines to build again. It’s not essential for us to use HTTPS for this, just as far as we’re aware it was working but then stopped!
As far as I’m aware the Installation Media hasn’t been updated recently, but looking at them they do all appear to be https paths for ours - as we point them to the local smart-proxy (which is essential for ones in the Border as they have no internet access)