Use the following sections to set up additional certificate authorities (CA) to be trusted by builds when pulling images from an image registry.

The procedure requires a Dedicated administrator to create a ConfigMap and add additional CAs as keys in the ConfigMap.

  • The ConfigMap must be created in the openshift-config namespace.

  • domain is the key in the ConfigMap; value is the PEM-encoded certificate.

    • Each CA must be associated with a domain. The domain format is hostname[..port].

  • The ConfigMap name must be set in the cluster scoped configuration resource’s spec.additionalTrustedCA field.

OpenShift Dedicated administrators are required to use the registry-cas ConfigMap.

Adding certificate authorities to the cluster

You can add certificate authorities (CAs) to the cluster for use when pushing and pulling images via the following procedure.

  • You must have Dedicated administrator privileges.

  • You must have access to the registry’s public certificates, usually a hostname/ca.crt file located in the /etc/docker/certs.d/ directory.

  1. Create a ConfigMap in the openshift-config namespace containing the trusted certificates for the registries that use self-signed certificates. For each CA file, ensure the key in the ConfigMap is the registry’s hostname in the hostname[..port] format:

    $ oc create configmap registry-cas -n openshift-config \ \
  2. Update the cluster image configuration:

    $ oc patch --patch '{"spec":{"additionalTrustedCA":{"name":"registry-cas"}}}' --type=merge