Skip to main content
Version: 5.6

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)
typical symptom

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.

bm-JDK

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 XML 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.

  1. 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
  2. Regenerate the trust store

    • Debian/Ubuntu
    # Ajout : fichier PEM, extension .crt obligatoire
    cp ma-ca.crt /usr/local/share/ca-certificates/ma-ca.crt
    update-ca-certificates

    # Mise à jour : écraser le fichier puis régénérer complètement
    cp ma-ca-nouvelle.crt /usr/local/share/ca-certificates/ma-ca.crt
    update-ca-certificates --fresh

    # Suppression
    rm /usr/local/share/ca-certificates/ma-ca.crt
    update-ca-certificates --fresh
    • RHEL/Rocky/Alma.
    # Ajout ou mise à jour
    cp ma-ca.crt /etc/pki/ca-trust/source/anchors/ma-ca.crt
    update-ca-trust extract

    # Suppression
    rm /etc/pki/ca-trust/source/anchors/ma-ca.crt
    update-ca-trust extract
  3. 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).

recommendation

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
namely
  • 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, webdav and certificate_report.
  • To enforce verification after adding the CA, remove the module from the list using --disable.
  • --module ALL --disable clears the entire list, not just the entry ALL.
  • Adding a module whilst ALL is active replaces ALL with this single module.
  • If you are unsure whether the change has taken effect, restart BlueMind ( bmctl restart ).

Find out more​

Related BlueMind documentation pages