Add a certificate authority bundle to a blueprint
You can include additional certificate authorities (CAs) to be trusted by the operating system when pulling images from an image registry. To add the additional CAs to the Red Hat Enterprise Linux for Edge (RHEL for Edge) rpm-ostree image, configure them in the blueprint that you use to create the image.
|
|
This procedure requires you to configure the CA bundle customizations in the blueprint, and then add steps to your Kickstart file to enable the bundle. In the following steps, |
-
You have root user access to your build host.
-
Your build host meets the image builder system requirements.
-
You have installed and set up image builder and the
composer-clitool.
-
Add the following custom values to your blueprint to add a directory.
-
Add instructions to your blueprint on the host where the image is built to create the directory, for example,
/etc/pki/ca-trust/source/anchors/for your certificate bundles.[[customizations.directories]] path = "/etc/pki/ca-trust/source/anchors" -
After the image has booted, create the certificate bundles, for example,
/etc/pki/ca-trust/source/anchors/cert1.pem:[[customizations.files]] path = "/etc/pki/ca-trust/source/anchors/cert1.pem" data = "<value>"
-
-
To enable the certificate bundle in the system-wide truststore configuration, use the
update-ca-trustcommand on the host where the image you are using has booted, for example:$ sudo update-ca-trustThe
update-ca-trustcommand might be included in the%postsection of a Kickstart file used for MicroShift host installation so that all the necessary certificate trust is enabled on the first boot. You must configure the CA bundle customizations in the blueprint before adding steps to your Kickstart file to enable the bundle.%post # Update certificate trust storage in case new certificates were # installed at /etc/pki/ca-trust/source/anchors directory update-ca-trust %end