I'm trying to deploy CF locally through a VirtualBox bosh-lite VM, but I'm running into the corporate proxy injecting a self signed certificate before reaching out to the internet.
I've SSH'd into the box and added the CA to the trusted certs at the OS level, but I'm still getting untrusted certificates in chain.
Is there somewhere I can put the Corporate CA within the configuration so all of the items will download / install successfully?
BOSH deploys things like CF, Zookeeper, Kubernetes, etc. to "clouds" by creating "machines" and installing the appropriate software and running it in those "machines". On a "typical" cloud like Amazon Web Services or VMWare vSphere, a "machine" is a typical virtual machine.
BOSH can also treat various container runtimes like Docker, Kubernetes, or Garden as "clouds" as well, and in the BOSH-Lite case, it's targetting Garden as a cloud. So in the BOSH-Lite case, the "machines" are actually Linux containers running inside the VirtualBox VM. So when you install your certs at the OS level of the VM, that will not apply to things running as containers within the VM.
BOSH does have a native way of injecting trusted certs into each machine it manages, using the
trusted_certsproperty. Assuming you followed these docs to install BOSH-Lite, you can update thecreate-envcommand from this:to this:
This adds two lines:
Even though it says
openstack, there's nothing OpenStack-specific about those files. The first line (with-o) modifies the base manifest for BOSH to include a section for setting thedirector.trusted_certsproperty but doesn't actually aset the value, it parameterizes it as a variable calledopenstack_ca_cert, and the second line (with--var-file) actually sets the value with the contents from the given file.After you run that command, it will update BOSH-Lite, but it won't update the things deployed by BOSH, e.g. CF. You'll need to re-run the deploy commands for CF to make sure it picks up those trusted certs.