Feature #19747
open
Proper support for non-self-signed webserver certificates.
Added by Han Boetes over 7 years ago.
Updated about 7 years ago.
Description
With help from these two articles
https://alexshepherd.me/articles/changing-foremans-ssl-certificate
https://theforeman.org/2015/11/foreman-ssl.html
And the comment from Andreas Wegmann on the last page:
After diving into the source code for node.rb I found that the function initialize_http() checks, if there is ":ssl_ca" set in the /etc/puppet/foreman.yaml. If this parameter is not set, it does not try to verify the https connection to foreman. So removing or commenting this line fixed the problem.
I managed to get the foreman webinterface working with an official certificate, and puppet working as well. But the current solution feels very hackisch.
I would really like to see official certificates properly supported from within the installer and I'd like to read about it in the documentation.
Using the following doesn't work either.
foreman-installer \
--foreman-server-ssl-cert=/etc/httpd/certs/host.example.com.crt \
--foreman-server-ssl-key=/etc/httpd/certs/host.example.com.key \
--foreman-server-ssl-chain=/etc/httpd/certs/host.example.com.ca-bundle \
--foreman-proxy-puppet-ssl-ca=/etc/httpd/certs/host.example.com.ca-bundle
Could some official documentation be made on the "blessed" method here.
Thomas Sanders wrote:
Using the following doesn't work either.
foreman-installer \
--foreman-server-ssl-cert=/etc/httpd/certs/host.example.com.crt \
--foreman-server-ssl-key=/etc/httpd/certs/host.example.com.key \
--foreman-server-ssl-chain=/etc/httpd/certs/host.example.com.ca-bundle \
--foreman-proxy-puppet-ssl-ca=/etc/httpd/certs/host.example.com.ca-bundle
Could some official documentation be made on the "blessed" method here.
What is the proper option to set /etc/puppetlabs/puppet/foreman.yaml :ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem" to UNDEF
I wouldn't want to set :ssl_ca:
to undefined at all. IMHO this could be better solved by having an additional parameter, one for the puppet_ca and one for the webserver_ca
- Translation missing: en.field_release changed from 248 to 266
- Translation missing: en.field_release deleted (
266)
Also available in: Atom
PDF