Foreman-Proxy - certificate verify failed (self signed certificate in certificate chain)

There’s a known problem in foreman 3.11, see Foreman 3.11/Katello4.13 - Smartproxy install/update issues with custom CA if it is not your case