Mitigating the eMudhra Intermediate CA Compromise with IBM i
This is a quick post in response to questions about the eMudhra Intermediate Certificate Authority Compromise. We will provide updates and more information as needed.
In this compromise, the private keys for the eMudhra certificate authority’s intermediate certificates were found to be very weak, enabling attackers to forge certificates and perform things like man-in-the-middle attacks. These keys can chain to roots trusted by the Mozilla, Microsoft, Apple and Chrome root programs, and by many downstream trust stores. Due to the scope of the intermediates breached, the recommendation by Mozilla and others is to pull the root that signed the intermediates. The vulnerability is more likely to affect server-to-server communication than browser applications.
This article provides a potential solution for IBM i that protects IBM i applications from being fooled by forged security certificates associated with this incident. Once applied successfully, applications using the updated certificate stores should reject those connections before exchanging sensitive information.
Please review and make sure the solution is suitable for your needs. Support clients are welcome to get in touch for personal assistance.
Mitigation for PASE
UPDATE: IBM has provided an updated version of the ca-certificates-mozilla package. Run from a PASE command line (SSH or CALL QP2TERM):
|
1 2 3 4 |
PATH=/QOpenSys/pkgs/bin:$PATH export PATH yum update ca-certificates-mozilla update-ca-certificates -f -v |
You only need to run the following steps if you cannot update your system using Yum.
Manual steps (obsolete)
PASE software as shipped by Yum, including Seiden PHP+, uses common infrastructure for managing certificates. You can mark the compromised certificates as untrusted with the following commands, run the following commands from an SSH session:
|
1 2 3 4 5 6 7 8 9 10 |
PATH=/QOpenSys/pkgs/bin:$PATH d=/QOpenSys/etc/pki/trust/blocklist mkdir -p $d trust extract --format=pem-bundle \ --filter='pkcs11:object=Comodo%20AAA%20Services%20root;type=cert' \ $d/Comodo_AAA_Services_root.pem && trust extract --format=pem-bundle \ --filter='pkcs11:object=emSign%20ECC%20Root%20CA%20-%20G3;type=cert' \ $d/emSign_ECC_Root_CA_-_G3.pem && update-ca-certificates -f -v |
Note on older versions of the certificate infrastructure package (if you haven’t updated or cannot update on an older release), you will have to substitute blocklist with blacklist in the preceding commands. You can run rpm -q p11-kit to check; if it is prior to 0.23, you are on an older version.
To test that PASE software has been secured, run the following command from the same SSH session:
|
1 |
curl -v https://dv-g3b-emudhra.we-have-a-problem.com/ https://dv-g3b-aaa-emudhra.we-have-a-problem.com/ |
If you see “Your client successfully connected to the site. That’s bad!”, then you are still vulnerable; review the steps above. If you get a TLS error for both sites, then you’re OK.
Mitigation for software using CA bundles
If your application is using a CA bundle file instead of the OpenSSL store (for example, if manually overriding PHP using the openssl.cafile INI option), it’s recommended to stop using a bundle override if possible, so system CA stores can be used with updates. If not, you must update your CA bundle; curl provides updated bundles to download.
Mitigation for DCM
Log into DCM and open your *SYSTEM keystore. Change the filter from “Client/Server Certificates” to “Certificate Authorities”. Look for “Comodo AAA Services root” and “emSign ECC Root CA – G3” and remove them. Note that by default, IBM does not ship these certificates with DCM out of the box, nor does it offer them with the “Populate with CAs” option, so you will only see these if they were manually added to DCM.

Hi Calvin, thanks for the heads up on the certificates.
There maybe a typo on the certificates package name, should it be “yum update ca-certificates-mozilla” ? (certificates plural)
Fixed, thank you