Mitigate the eMudhra CA vulnerability without an upgrade

Mitigate the compromised eMudhra intermediate CA certificates (CVE-2026-111943) in the Perl bundled with Cloudbees CD/RO without an upgrade.

17 minute readSecurity

The eMudhra intermediate certificate authority (CA) certificates have been compromised (CVE-2026-111943). The Perl that ships inside Cloudbees CD/RO still trusts the root certificates that these intermediates chain to. The workaround mitigates the problem in installed Cloudbees CD/RO versions that you cannot upgrade yet. It updates the list of trusted CAs that this Perl uses and removes those roots.

This workaround applies to Cloudbees CD/RO on Linux, Windows, and macOS hosts. For Docker and Kubernetes, refer to Platform-specific considerations.

Apply this workaround in a lower environment (development, test, or staging) first. Check your own HTTPS integrations there, then roll out to production.

No service is stopped or restarted, so there is no downtime: Processes that start after the change use the new file. For processes that are already running, refer to Where to run the script.

Installations that already run a fixed release do not need this workaround. The script reports them as patched and changes nothing.
Installation type Procedure Applies to

Linux host

fix-mozilla-ca.sh. Follow Solution to Validate the workaround.

Every Cloudbees CD/RO release built before the fix.

Windows host

Fix-MozillaCa.cmd or Fix-MozillaCa.ps1. Follow the same sections as for Linux.

Same.

macOS

fix-mozilla-ca.sh, run with sudo. Follow Solution to Validate the workaround.

Same.

Docker

Patched image or a mounted file (Platform-specific considerations).

Every Cloudbees CD/RO image that holds the file.

Kubernetes (Helm chart cloudbees/cloudbees-flow)

Patched images and the chart settings (Platform-specific considerations).

Same.

Solution

Cloudbees CD/RO ships its own Perl. When a Perl step or plugin opens an HTTPS connection without naming a CA file, LWP and IO::Socket::SSL trust the roots in the Perl module Mozilla::CA, in the file …​/Mozilla/CA/cacert.pem. Releases built before the fix carry Mozilla::CA 20200520. That version still trusts emSign ECC Root CA - G3, so Perl accepts certificates that chain to the compromised eMudhra intermediate.

New builds already contain the fix (Mozilla::CA 20261020). The workaround makes the same change in an installed Cloudbees CD/RO by replacing that one file. It leaves the operating system trust store and the Java trust store alone. The only other file it can touch is the Perl module CA.pm, which holds the version number (refer to Choose a mode).

Prerequisites

The package is available as cdro-ca-fix.zip. Unpack it. The archive creates a folder named cdro-ca-fix. Run all commands from that folder.

Linux and macOS
unzip cdro-ca-fix.zip && cd cdro-ca-fix
▼

If unzip is missing, install it (sudo dnf install unzip or sudo apt install unzip).

Windows
Expand-Archive .\cdro-ca-fix.zip -DestinationPath . ; cd .\cdro-ca-fix Get-ChildItem . | Unblock-File
▼

Run Unblock-File only if Windows blocks the files.

The package contains the following files:

File Purpose

fix-mozilla-ca.sh

Script for Linux and macOS.

Fix-MozillaCa.ps1

Script for Windows (Windows PowerShell 5.1 or later).

Fix-MozillaCa.cmd

Windows launcher. It runs the .ps1 script with the execution policy bypassed for that run only and accepts the same options. Without options, it prints help.

cacert.pem

The Mozilla::CA 20261020 bundle (120 certificates).

SHA256SUMS

Checksums of the four files above.

Check the package before you use it:

Linux and macOS
sha256sum -c SHA256SUMS
▼

On macOS, use shasum -a 256 -c SHA256SUMS.

Windows
Get-FileHash .\cacert.pem -Algorithm SHA256
▼

Compare the output with SHA256SUMS.

Following are the tools and privileges for accessing different platforms:

Aspect Linux and macOS Windows

Privileges

root (or the owner of the files)

Elevated Command Prompt or PowerShell (or the owner of the files)

Tools

sh, awk, sed, grep, and one of sha256sum, shasum, or openssl

Windows PowerShell 5.1 or later (included in Windows Server 2016 and later)

Internet access

Only for --verify

Only for -Verify

The SHA-256 checksum of cacert.pem is 8d2c28496ca911c15dfc5d4adff95e56aa1917dde99355f6499f9881a16bf88b.

Find out whether you are affected

Run the script in report-only mode. It changes nothing.

Linux and macOS
sudo ./fix-mozilla-ca.sh --check --verify
▼
Windows
Fix-MozillaCa.cmd -Check -Verify
▼

An affected installation shows state: VULNERABLE (stock Mozilla::CA 20200520 …​). With --verify, the two eMudhra test sites are marked TRUSTED ←- PROBLEM: must be REJECTED. The last line is RESULT: VULNERABLE, exit 2. Exit code 2 means the script found at least one vulnerable file.

Where to run the script

  • Run the script on every host that has a Cloudbees CD/RO installation with Perl: the server, the web server, the repository, and every agent. Each installation has its own copy of the file, so an agent on another machine needs its own run.

  • If a host has several installations (parallel installations, or an agent and a server), the script finds them and handles them one by one.

  • Run the script as root, as an elevated administrator, or as the user who owns the files. A user without write permission gets no write permission on …​ for that file, and the run ends with exit code 1.

  • The script does not stop or restart any service. Processes that start after the change use the new file. A Perl process that is already running keeps the list it loaded at start, so restart long-running Perl processes if you need the new list immediately.

When you do not pass --install-dir, the script looks in these locations:

Platform Locations

Linux

  • /opt/cloudbees/sda

  • /opt/electriccloud/electriccommander

  • /opt/electriccommander

  • /opt/cbflow

  • The directories named in /etc/init.d/commander* and /etc/init.d/ecmdrAgent*, and the matching systemd units.

Windows

  • Cloudbees CD/RO entries in the registry under …​\CurrentVersion\Uninstall

  • The Commander* services

  • %ProgramW6432%\CloudBees\Software Delivery Automation

  • %ProgramFiles%\Electric Cloud\ElectricCommander

  • C:\EC

macOS

/Library/LaunchDaemons/ecmdrAgent*.plist

If your installation is somewhere else, or runs without a service (for example, an agent that does not run as root), pass its directory:

sudo ./fix-mozilla-ca.sh --install-dir /path/to/install --check
▼
Find the installation folder or the file manually

To find the file, run find <install-dir> -path '*Mozilla/CA/cacert.pem' on Linux and macOS, or Get-ChildItem <install-dir> -Recurse -Filter cacert.pem on Windows.

If you do not know the installation folder, look at how the services start.

Linux
grep -E 'INSTALLDIR|AGENTDIR' /etc/init.d/commander* /etc/init.d/ecmdrAgent* systemctl cat <unit> | grep ExecStart
▼
Windows
Get-CimInstance Win32_Service | Where-Object Name -match 'Commander|ecmdr|CloudBees' | Select-Object Name, PathName
▼

Choose a mode

The script has two modes:

Aspect full (default) minimal

What changes

cacert.pem is replaced with Mozilla::CA 20261020, the same list that new Cloudbees CD/RO builds ship.

The two roots the eMudhra chains depend on, emSign ECC Root CA - G3 and Comodo AAA Services root, are removed from your current file. All other roots stay.

Resulting file

120 certificates

136 certificates (from the stock 138)

Module version

CA.pm is updated to report 20261020.

Unchanged. It still reports 20200520.

Matches new releases

Yes

No

Why minimal removes two roots:

Details

Why minimal removes two roots: The two eMudhra test sites chain to different roots. dv-g3b-emudhra ends in emSign ECC Root CA - G3. dv-g3b-aaa-emudhra (intermediate EM DV TLS CA - G3B, cross-signed) ends in Comodo’s AAA Certificate Services, which the list calls Comodo AAA Services root. If you remove only the first root, the second site stays trusted. Both roots are also gone from Mozilla::CA 20261020, so minimal removes exactly the eMudhra-related part of what full removes in default mode.

In both modes, a site whose certificate chains only to Comodo AAA Services root no longer validates in Perl.

What full mode also removes: Mozilla’s 20261020 list drops 76 roots that were in 20200520 and adds 58 new ones. The dropped roots include DigiCert Global Root CA, GlobalSign Root CA and R2, GTS Root R1 to R4, several Entrust, QuoVadis, GeoTrust, thawte, and VeriSign roots, AddTrust, and Baltimore CyberTrust. Public sites normally chain to a newer root as well, but check the endpoints your steps call before you roll out. A private or internal server whose certificate chains only to a removed root stops validating in Perl after a full run.

Move from minimal to full later: A file that minimal already cleaned is reported as OK, and a later full run leaves it alone, also with --force. To move to the full bundle, restore the backups of both files, and then run the script without --mode.

Which mode to pick: Use full unless your Perl steps call internal servers with a private or unusual CA and you cannot test first. In that case, use minimal now and move to a release with the fix later. Both modes remove the compromised roots.

Test your own endpoints before and after, in the lower environment:

sudo ./fix-mozilla-ca.sh --check --verify --url https://your-internal-server.example.com
▼

Apply the workaround

Apply the following workaround:

Linux
sudo ./fix-mozilla-ca.sh # full mode, auto-discovery sudo ./fix-mozilla-ca.sh --mode minimal # minimal mode sudo ./fix-mozilla-ca.sh --install-dir /opt/cloudbees/sda --verify
▼
Windows

In an elevated prompt, use the launcher, which takes the same options as the PowerShell script:

Fix-MozillaCa.cmd -Verify Fix-MozillaCa.cmd -Mode minimal -Verify
▼

To name a folder, run the launcher from PowerShell and put the path in single quotes:

.\Fix-MozillaCa.cmd -InstallDir 'C:\Program Files\CloudBees\Software Delivery Automation' -Verify
▼

You can also call PowerShell directly:

powershell -NoProfile -ExecutionPolicy Bypass -File .\Fix-MozillaCa.ps1 -Verify powershell -NoProfile -ExecutionPolicy Bypass -File .\Fix-MozillaCa.ps1 -Mode minimal powershell -NoProfile -ExecutionPolicy Bypass -File .\Fix-MozillaCa.ps1 -InstallDir 'C:\Program Files\CloudBees\Software Delivery Automation' -Verify
▼

For each cacert.pem it finds, the script does the following:

  1. Classifies the file by SHA-256 checksum and content: patched, OK (no compromised eMudhra root), VULNERABLE (stock 20200520), or VULNERABLE (modified bundle).

  2. Saves a backup next to the file, named cacert.pem.bak-<timestamp>.

  3. Writes the new content into the same file, so the owner, permissions, ACL, and SELinux label stay as they were.

  4. Reads the file back and compares the checksum. If anything differs, it restores the backup and reports the error.

  5. In full mode with the packaged file, updates the version string in Mozilla/CA.pm (backup CA.pm.bak-<timestamp>).

Automatic rollback

After it writes a file, the script reads it back and compares the checksum with the expected one. If they differ (for example, because the write stopped halfway), it puts the backup back and reports the error. It does this for each file separately, and the other files in the same run are still processed. After it writes a file, the script reads it back and compares the checksum with the expected one. If they differ (for example, because the write stopped halfway), it puts the backup back and reports the error. It does this for each file separately, and the other files in the same run are still processed.

Running the script again is safe. It reports files that are already fixed and leaves them alone. If a file differs from the stock 20200520 bundle (for example, you added a private root), full mode skips it and asks for --force. With --force, the file is replaced and your additions survive only in the backup. With --mode minimal, the file is cleaned and your additions stay.

Details

At the end, the script prints a summary and a result line:

==> summary: files=1 vulnerable=1 replaced=1 needs-force=0 errors=0 ==> RESULT: FIXED, exit 0. 1 file(s) replaced.
▼
Table 1. Result lines and exit codes
Result line Exit code Meaning

RESULT: FIXED

0

Files were replaced.

RESULT: OK

0

Nothing to change or nothing to fix.

RESULT: VULNERABLE

2

A report-only run found vulnerable files.

RESULT: NEEDS --force (Windows: NEEDS -Force)

3

Some files differ from the stock bundle and were skipped.

RESULT: ERRORS

1

Something failed. Read the messages above the line.

Validate the workaround

Validate the following:

  1. Run the report with --verify (Windows: -Verify):

    sudo ./fix-mozilla-ca.sh --check --verify
    ▼

    After the fix, the output shows state: patched (or OK), exit code 0, and RESULT: OK, exit 0. In the verify block, both eMudhra test sites show REJECTED …​ ok with certificate verify failed at the end of the line, and normal sites such as github.com stay TRUSTED …​ ok.

  2. In full mode, check the module version. The output must be 20261020.

    Linux
    <install-dir>/perl/bin/perl -MMozilla::CA -e 'print "$Mozilla::CA::VERSION\n"'
    ▼
    Windows
    "<install-dir>\perl\bin\perl.exe" -MMozilla::CA -e "print qq($Mozilla::CA::VERSION\n)"
    ▼

    In PowerShell, put single quotes around the Perl code. Double quotes make PowerShell expand $Mozilla.

    & '<install-dir>\perl\bin\perl.exe' -MMozilla::CA -e 'print qq($Mozilla::CA::VERSION\n)'
    ▼
  3. Run one Cloudbees CD/RO procedure or plugin step that makes an HTTPS call from Perl, and confirm that your integrations still work.

Servers without internet access

--verify needs internet access, because it requests the two eMudhra test sites and github.com. On a host without internet access, the replacement still works. Check it locally instead:

  • --check returns exit code 0.

  • In full mode, the file has the expected SHA-256 checksum.

  • In minimal mode, the file has 136 certificates and no match for emSign ECC Root CA - G3|Comodo AAA Services root.

On Windows, the script runs the HTTPS check with <install-dir>\bin\ec-perl.exe. This wrapper sets up the OpenSSL libraries that the bare perl.exe cannot find.

Use an updated CA bundle

You can download the current Mozilla bundle yourself and give it to full mode instead of the packaged file.

Linux
curl -fLO https://curl.se/ca/cacert.pem curl -fLO https://curl.se/ca/cacert.pem.sha256 sha256sum -c cacert.pem.sha256 sudo ./fix-mozilla-ca.sh --cacert ./cacert.pem --expect-sha256 <sha256-from-cacert.pem.sha256>
▼

On macOS, use shasum -a 256 -c cacert.pem.sha256.

Windows
.\Fix-MozillaCa.ps1 -CaCert .\cacert.pem -ExpectSha256 <sha256-from-the-site>
▼

To test a bundle without installing it, add the report-only option: ./fix-mozilla-ca.sh --cacert ./fresh.pem --check (Windows: -CaCert .\fresh.pem -Check). The script validates the file, says whether it is acceptable, and changes nothing.

The script refuses a file and changes nothing in these cases:

  • The file is empty or is not a clean PEM bundle.

  • It has fewer than 100 certificates.

  • It still contains a compromised root (emSign ECC Root CA - G3 or Comodo AAA Services root).

Before it installs your file, the script prints its SHA-256 checksum and certificate count. Download the file on a trusted machine and check the checksum there. A download that goes through the very trust list you are fixing proves little.

The module version in CA.pm stays as it is for your own file, and --cacert cannot be combined with --mode minimal. If you use your own file, try it in a lower environment first.

Platform-specific considerations

Following are platform specific considerations:

  • macOS: Run the script with sudo, the same way as on Linux. It finds the agent through /Library/LaunchDaemons/ecmdrAgent*.plist, replaces the file, and checks the result. If the agent was installed without root, the plist is not there. In that case, pass the installation folder with --install-dir. As on every platform, the best long-term fix is a release that ships the updated Perl bundle.

  • Docker and Kubernetes: The file is in every Cloudbees CD/RO image except the databases. The images to fix are:

    Image Used for

    cbflow-server

    Server and the init job

    cbflow-web

    Web server

    cbflow-repository

    Artifact repository

    cbflow-analytics

    Analytics server

    cbflow-dois

    DevOps Insight

    cbflow-agent

    Agents

    cbflow-tools

    ZooKeeper and the Analytics and DevOps Insight backup jobs

    The database images have no Perl and stay as they are. The cbflow-tools image holds the same file as the other images, so fix it too.

    A change made inside a running container is lost when the container is recreated, and pods added later start from the original image. Do not fix running pods by hand with kubectl exec or docker exec. Choose one of these, in this order:

    1. Upgrade to a release that already has the fix.

    2. Build a patched image from the image you run, and point the chart or the container at it. Cloudbees does not publish patched images for this workaround.

    3. Mount the corrected cacert.pem over the original file.

Perform one of these, in this order:

Details

Build a patched image

All images keep the file under /opt/cbflow, but the Perl folder name depends on the release.

  1. Find the path in the image you run:

    docker run --rm --entrypoint sh <registry>/cbflow-server:<tag> -c "find /opt/cbflow -path '*Mozilla/CA/cacert.pem'"
    ▼
  2. Write one Dockerfile and use it for every image to fix. BASE is the image you run, and <path> is the path from the previous command. The images run as user 1000, so the build switches to root for the copy and back to 1000 at the end. Change the last line if your image runs as another user.

    ARG BASE FROM ${BASE} USER root COPY cacert.pem <path> USER 1000
    ▼
  3. Put this Dockerfile and the cacert.pem from the package in an empty folder, and build from that folder (the . at the end of the build command). Docker might print the warning InvalidDefaultArgInFrom because BASE has no default value. The warning is harmless, because you always pass --build-arg BASE=…​.

  4. Build and push each image under a new repository name with the release’s own tag. Do not use a new tag. Charts earlier than 2.33.0 ignore imageTag, and the pods silently keep the old image.

    docker build --build-arg BASE=<registry>/cbflow-server:<tag> -t <registry>/cbflow-server-ca-fix:<tag> . docker push <registry>/cbflow-server-ca-fix:<tag>
    ▼

    Build on a machine with the same CPU architecture as the cluster nodes. If it differs (for example, an Apple Silicon Mac building for x86_64 nodes), add --platform linux/amd64 to both docker build and the docker run command that finds the path. Otherwise, the image starts with exec format error.

  5. Repeat this for every other image in the table: cbflow-web, cbflow-repository, cbflow-analytics, cbflow-dois, cbflow-agent, and cbflow-tools. Some registries (for example, Amazon ECR) require each new repository to exist before the first push.

Point the chart at the patched images

  1. If the cloudbees chart repository is not set up on the machine you work from, add it:

    helm repo add cloudbees https://public-charts.artifacts.cloudbees.com/repository/public/ helm repo update cloudbees
    ▼
  2. Keep your chart version and settings (--reuse-values), and change only the image repositories of the components you run:

    helm upgrade <release> cloudbees/cloudbees-flow -n <namespace> --version <chart-version> --reuse-values \ --set server.imageRepository=cbflow-server-ca-fix \ --set web.imageRepository=cbflow-web-ca-fix \ --set repository.imageRepository=cbflow-repository-ca-fix \ --set analytics.imageRepository=cbflow-analytics-ca-fix \ --set dois.imageRepository=cbflow-dois-ca-fix \ --set boundAgent.images.imageRepository=cbflow-agent-ca-fix \ --set analytics.backup.imageRepository=cbflow-tools-ca-fix \ --set dois.backup.imageRepository=cbflow-tools-ca-fix \ --set zookeeper.image.repository=<registry>/cbflow-tools-ca-fix
    ▼
  3. Set the same values in your values file, so that a later helm upgrade with that file keeps the fix.

The chart takes the registry for all images from images.registry (or from global.cloudbees.imageRegistry when you set it). Push the patched images to the registry your cluster already pulls from. If the cluster pulls straight from docker.io/cloudbees, you cannot push there. Copy the images you run into a registry you control and point images.registry at it.

Agent images. The agent images use a different key from the other components: images.imageRepository inside the agent’s section. The chart has three agent sections: boundAgent, internalGatewayAgent, and externalGatewayAgent. Set <section>.images.imageRepository for each one you use. A plain boundAgent.imageRepository is accepted by Helm but does nothing. For an agent installed with its own cloudbees-flow-agent chart, the key is images.imageRepository.

The cbflow-tools image. This image is used in three places, with three keys:

  • The backup and restore jobs of Analytics and DevOps Insight use analytics.backup.imageRepository and dois.backup.imageRepository.

  • ZooKeeper uses zookeeper.image.repository, which takes the full name with the registry (it does not use images.registry). Its tag stays in zookeeper.image.tag.

Set the keys of the components you run. zookeeper.image.imageRepository does not change the ZooKeeper image.

Check the patched images

Wait for the pods to restart, then check the file in each component. The checksum must be the SHA-256 checksum of cacert.pem from [get-the-package].

kubectl -n <namespace> rollout status deploy/flow-server kubectl -n <namespace> exec deploy/flow-server -- sh -c 'sha256sum $(find /opt/cbflow -path "*Mozilla/CA/cacert.pem")'
▼

Check deploy/flow-web, deploy/flow-repository, statefulset/flow-analytics, statefulset/flow-devopsinsight, one of your agent pods, and the ZooKeeper pod in the same way. If a pod has more than one container, add -c <container>.

Roll back on Kubernetes

Run helm rollback <release> -n <namespace>. It returns to the previous revision and the original images. If you set the values in your values file, remove them there too.

Mount the file instead of building an image

With plain Docker, mount the file into the container you start:

docker run ... -v "$PWD/cacert.pem:<path>:ro" <image>
▼

In Kubernetes, put the file in a ConfigMap and mount it with subPath. The chart supports this for the server, jobInit, web, repository, and boundAgent sections, through additionalVolumes and additionalVolumeMounts. It has no such setting for analytics, dois, and the cbflow-tools pods (ZooKeeper and the backup jobs). For those, build a patched image.

  1. Create the ConfigMap:

    kubectl -n <namespace> create configmap cacert-fix --from-file=cacert.pem=./cacert.pem
    ▼
  2. Add the following to your values file, once for each of the supported sections (the example uses server):

    server: additionalVolumes: - name: cacert-fix configMap: name: cacert-fix additionalVolumeMounts: - name: cacert-fix mountPath: <path> subPath: cacert.pem readOnly: true
    ▼
  3. Run the upgrade:

    helm upgrade <release> cloudbees/cloudbees-flow -n <namespace> --version <chart-version> --reuse-values -f <your values file>
    ▼

A file mounted this way does not change when you replace the ConfigMap, so restart the pods after you change it. The module version in CA.pm stays 20200520 with both methods. That does not matter, because Perl reads the list from the file.

Rollback

Each changed file has a timestamped backup next to it. Restore the backup into the existing file, as the same user that ran the script.

In the following commands:

  • <dir> is the folder that holds Mozilla/CA.pm. On Linux, it is <install-dir>/perl/lib/site_perl/<perl-version>. On Windows, it is <install-dir>\perl\site\lib.

  • <ts> is the timestamp in the backup name.

Linux and macOS
sudo sh -c 'cat <dir>/Mozilla/CA/cacert.pem.bak-<ts> > <dir>/Mozilla/CA/cacert.pem' sudo sh -c 'cat <dir>/Mozilla/CA.pm.bak-<ts> > <dir>/Mozilla/CA.pm' # only if a CA.pm backup exists
▼
Windows
Copy-Item '<dir>\Mozilla\CA\cacert.pem.bak-<ts>' '<dir>\Mozilla\CA\cacert.pem' -Force Copy-Item '<dir>\Mozilla\CA.pm.bak-<ts>' '<dir>\Mozilla\CA.pm' -Force # only if a CA.pm backup exists
▼

Restore both files after a full run. If you restore only cacert.pem, Perl reports module version 20261020 for the old list. After a minimal run, there is no CA.pm backup, so restore cacert.pem only.

Then run --check. The file shows VULNERABLE (stock Mozilla::CA 20200520 …​) again.

A rollback brings the vulnerability back. Do it only to investigate a regression, and apply --mode minimal or upgrade to a fixed release afterwards.

Keep the backups until you have confirmed that your integrations work.

Apply the workaround manually

Use these steps only if you cannot run the script. <dir> is the folder that holds Mozilla/CA.pm.

  1. Copy <dir>/Mozilla/CA/cacert.pem to a backup name.

  2. Overwrite the file in place with the packaged cacert.pem. On Linux, use cat cacert.pem > <dir>/Mozilla/CA/cacert.pem (with sudo sh -c if you are not the owner). On Windows, use Copy-Item …​ -Force.

  3. Confirm with sha256sum or Get-FileHash that the file equals the SHA-256 checksum 8d2c28496ca911c15dfc5d4adff95e56aa1917dde99355f6499f9881a16bf88b.

  4. Validate the workaround.

Complete post-upgrade changes

After upgrading to a release that includes Mozilla::CA 20261020, complete the following steps:

  1. Verify the upgrade: Confirm that the new release is working as expected and that the updated CA bundle is in use.

  2. Remove backup files: After verifying the upgrade, remove the leftover cacert.pem.bak- and CA.pm.bak- files.

  3. Restore the original container image settings: If you used patched-image overrides, remove them before or during the upgrade. Otherwise, the pods look for cbflow-server-ca-fix with the new release’s tag, which does not exist.

  4. Set the original image repositories: For example, specify the original server image repository:

    --set server.imageRepository=cbflow-server
    ▼
  5. Restore the original repositories for the following components. Restore the original repositories for the other components as well.

    • boundAgent.images.imageRepository=cbflow-agent

    • analytics.backup.imageRepository=cbflow-tools

    • dois.backup.imageRepository=cbflow-tools

    • zookeeper.image.repository=<registry>/cbflow-tools

Troubleshoot

If something unexpected happens, send the output of --check --verify to Cloudbees Support.

Details
Message or symptom Cause and resolution

no CD/RO installation found; pass --install-dir DIR

The script found nothing on its own (for example, an agent that does not run as a service). Pass --install-dir or -InstallDir.

nothing to do and no Mozilla/CA/cacert.pem found under: …​

The folder has no Perl Mozilla::CA file. Pass the Perl folder of the installation you mean.

no write permission on …​

Run as root, as an elevated administrator, or as the owner of the file. The script still processes the other files. In a container, run as root.

cannot enter the folder of this script

The account cannot open the folder the script is in (for example, another user’s home directory). Copy the package to a folder the account can use, such as /tmp, and run it from there.

packaged cacert.pem has SHA-256 …​, expected …​

cacert.pem is damaged or does not come from this package. Download the package again.

skipped - file differs from the stock bundle, use --force

Someone modified the bundle. Use --mode minimal to keep the changes, or --force to replace the file.

…​ still contains a compromised root ('emSign ECC Root CA - G3' or 'Comodo AAA Services root')

The --cacert file is an old bundle. Download a current one.

has only N certificates

The --cacert file is truncated or the wrong file.

verify: a compromised eMudhra site is STILL trusted

The Perl you tested does not use the file that was changed. It might be another Perl (use --perl), or a step might set its own SSL_ca_file. To see which file a Perl uses, run perl -MIO::Socket::SSL -e 'print IO::Socket::SSL::default_ca()'.

verify: INCONCLUSIVE - an eMudhra test site could not be reached

--verify needs internet access (DNS and port 443) to the two eMudhra test sites. Without it, the result is UNREACHABLE, which is not a pass. The replacement itself does not need internet access. Confirm with --check (exit 0), then the SHA-256 checksum of the file (full mode) or the certificate count and the search for the two roots (minimal mode). Or run the HTTPS check from a host that has access.

verify: a normal site is not reachable / trusted

Network or proxy problem, or the site chains only to a root that the new list no longer has. Check from the host without the script. Use --mode minimal if needed.

verify: this Perl cannot do HTTPS as started

On Windows, run the HTTPS check with the product’s wrapper: -Perl '<install-dir>\bin\ec-perl.exe'. The script already prefers it when it exists. A bare perl\bin\perl.exe can fail with Can’t load …​ SSLeay.dll.

another run is in progress

A second copy of the script is running. On Linux and macOS, remove $TMPDIR/fix-mozilla-ca.lock.<uid> if it is a leftover.

A custom or internal HTTPS call fails after full

The server chains to a root that the new list dropped. Roll back and use --mode minimal, or add the private root to your own bundle and pass it with --cacert.

Option reference

Details

Following are the optional reference:

Linux and macOS Windows Description

--check

-Check

Report only. Changes nothing. With --cacert (Windows: -CaCert), it also validates that bundle.

--mode full|minimal

-Mode full|minimal

Selects the mode. The default is full. Refer to Choose a mode.

--install-dir DIR (repeatable)

-InstallDir DIR[,DIR]

Installation folder instead of auto-discovery.

--cacert FILE

-CaCert FILE

Your own bundle (full mode only). Refer to Use an updated CA bundle.

--expect-sha256 HEX

-ExpectSha256 HEX

Required SHA-256 checksum of that bundle.

--force

-Force

Replaces a modified bundle in full mode.

--verify

-Verify

HTTPS test with the installation’s Perl.

--url URL

-Url URL

Extra URL that must keep working.

--perl FILE

-Perl FILE

Perl to use for the HTTPS test. The default on Linux is <install>/perl/bin/perl. The default on Windows is <install>\bin\ec-perl.exe if it exists, otherwise <install>\perl\bin\perl.exe.

Limitations and risks

Details

Following are the limitations and risks involved:

  • Full versus minimal mode: full mode drops 76 root certificates. A private or internal server that chains only to a dropped root no longer validates in Perl, and procedures that call such a server can fail. Run --check --verify first and test in a lower environment. If this affects you, use minimal mode.

  • Private and internal CAs: minimal mode keeps your own additions to cacert.pem. full mode replaces the file, so verify any procedure that relies on an internal CA. If a file was modified, full mode skips it unless you use --force, and your additions then survive only in the backup.

  • Containers: A change inside a running container is lost when the container is recreated. Refer to Platform-specific considerations.

  • Running processes: A running Perl process keeps the old trust list until it restarts.

  • Scope: The workaround changes only the Perl trust list (and, in full mode, the version string in CA.pm). It does not change the operating system or Java trust stores.

  • This workaround is a temporary mitigation. Upgrade to a Cloudbees CD/RO release that contains the fix when you can.