Managing Certification Authorities (CA)
Certification authorities enable BlueMind to connect to an external service via TLS. For example:
- For file storage: Nextcloud, WebDAV server, Alfresco, etc.
- For external authentication: OpenID Connect, Keycloak, etc.
- For object storage: Internal S3 (MinIO, Ceph, Scality, etc.)
- For videoconferencing or telephony: Zoom, Temas, Pexip, Wazo, etc.
- For LDAP import via LDAPS/StartTLS, if the "accept all certificates" option is not ticked
When should a CA be added?
When a certificate is signed by a CA not recognised by Java, the CA must be added to the system. This may be:
- of an internal PKI
- of a private or self-signed CA
- an outbound proxy that performs TLS inspection and re-signs all certificates with the organisation’s CA
It is not necessary to add a CA in the following cases:
- public certificates (Let's Encrypt, commercial CAs, etc.), which are already recognised
- import Active Directory, which accepts all certificates
- the BlueMind website’s own certificate, which is covered by a separate procedure
- S/MIME CAs, managed separately in BlueMind
- modules for which certificate verification is disabled (see the relevant section)
A CA must be added when the logs (/var/log/bm/core.log …) indicate:
javax.net.ssl.SSLHandshakeException: PKIX path building failed ...
unable to find valid certification path to requested target
Adding a CA to the system
For BlueMind to recognise a CA, it must be added to the system’s trusted store using the OS tools.
Since JDK version 25.0.4.1, the bm-jdk package supplied with BlueMind no longer has its own list of certification authorities. Its lib/security/cacerts file points to the system’s Java trust store, which is generated by the OS tools.
CAs should therefore no longer be imported using keytool into the JDK (as they would be lost upon the next upgrade), but added to the system instead.
The process involves placing the CA’s certificate in the OS directory, regenerating the trust stores, and then restarting BlueMind so that Java can read the trust store.
-
Preparing the certificate
- Obtain the root CA certificate (and any intermediate certificates if required) from the client’s PKI team, then check the file:
openssl x509 -in ma-ca.crt -noout -subject -issuer -enddate- If the certificate is in DER (binary) format, convert it to PEM:
openssl x509 -inform der -in ma-ca.cer -out ma-ca.crt -
Regenerate the trust store
- Debian/Ubuntu
# Ajout : fichier PEM, extension .crt obligatoirecp ma-ca.crt /usr/local/share/ca-certificates/ma-ca.crtupdate-ca-certificates# Mise à jour : écraser le fichier puis régénérer complètementcp ma-ca-nouvelle.crt /usr/local/share/ca-certificates/ma-ca.crtupdate-ca-certificates --fresh# Suppressionrm /usr/local/share/ca-certificates/ma-ca.crtupdate-ca-certificates --fresh- RHEL/Rocky/Alma.
# Ajout ou mise à jourcp ma-ca.crt /etc/pki/ca-trust/source/anchors/ma-ca.crtupdate-ca-trust extract# Suppressionrm /etc/pki/ca-trust/source/anchors/ma-ca.crtupdate-ca-trust extract -
Restart BlueMind
bmctl restart❗ In a multi-server installation, carry out this operation on every server that uses BlueMind Java services.
Verifying CAs
The JDK’ cacerts must point to the system store, and the CA must appear there. To check, search for the CA’s CN:
ls -l /usr/lib/jvm/bm-jdk/lib/security/cacerts
/usr/lib/jvm/bm-jdk/bin/keytool -list -v -cacerts -storepass changeit | grep -
i "CN=Ma CA Interne"
Disable certificate verification (alternative solution)
In the case of a test or pre-production platform, it is possible to disable BlueMind’s verification of certificates for certain modules (‘trust all’ mode).
The connection is then no longer protected against interception. This mode should only be used as a temporary workaround.
Adding the CA remains the recommended solution.
This mode is configured via the system configuration key tls_trust_allcertificates.
# Voir les modules actuellement en mode "trust all"
bm-cli sysconf list | grep tls_trust_allcertificates
# Désactiver la vérification pour un module
bm-cli security ssl-trust-mode --module webdav
# Réactiver la vérification pour ce module
bm-cli security ssl-trust-mode --module webdav --disable
# Désactiver la vérification pour tous les modules
bm-cli security ssl-trust-mode --module ALL
- If a module is on the list, adding the CA has no effect on it: no certificates are verified. On installations upgraded from a version prior to the end of 2023, the list contains the following by default
setup-wizard,wazo,openid-connect,webdavandcertificate_report. - To enforce verification after adding the CA, remove the module from the list using
--disable. --module ALL --disableclears the entire list, not just the entryALL.- Adding a module whilst
ALLis active replacesALLwith this single module. - If you are unsure whether the change has taken effect, restart BlueMind (
bmctl restart).