I think the instructions from my tutorial post should work for you as well. As I set up a smart proxy with puppet master, I have added everything to get the puppet master working. But if you omit all the puppet things it should work as well. Without the puppet parts all what’s left is the smart proxy configuration. After that you have to manually set up the proxy configuration for the services you want to use.
So quickly going through the tutorial, I’d say you do step 1 through 4, omit 5, do 6 (without puppet repo), step 7 (which does the certs for the smart proxy), skip 8 as that’s for puppet, do 9 without puppetmaster.
And then finally step 10, without --enable-puppet and the --puppet-* options, but with all other options. Possibly, some may be superfluous, but be sure to check. Comparing it with out foreman-installer command you are definitively missing a few, including the --enable-foreman-proxy
and a couple of --foreman-proxy-foreman-ssl-*
.
And the certificates you are using are incorrect. I highly recommend to extract the certs from the cert tar and also place them into the directories and names I have used. That’s where the proxy expects them and that’s where it should have the correct permissions. But I don’t know if it would look different on debian.
Either way, for instance --foreman-proxy-ssl-ca
is not the CA for the server, but the client. The server CA would be in --foreman-proxy-foreman-ssl-ca
. Thus, you are configuring the client cert on the server and the server cert for the client…
Of course, always remember my tutorial start with a clean system without any previous proxy installation or configuration. Each foreman-installer run keeps the previous configurations and only changes what you pass on command line.
As you are using debian for the proxy, it may be necessary to install a content proxy in the normal way on a test server to learn, where it places the certs. That may be the best idea how to do it correctly and then strip it down as I did for the tutorial…