Certificates

This chapter provides guidelines and best practices for managing TLS certificates in PAS-X MES, covering configuration scope, secret structure, and operational considerations.

Refer to Kubernetes TLS Secrets Guidelines for instructions on how the certificates should be provided on the Kubernetes cluster.

Trust Domains for External Communication

TLS trust configurations are organized by trust domains. Each trust domain represents a specific type of external system that MES connects to and specifies the certificate trust material needed to establish trusted outgoing TLS connections.

Overview

The following trust domains are supported:

Trust Domain Description

Authentication Systems

Required for secure communication with external authentication systems (e.g., card readers).

Add the Secret name(s) to truststore.certificateSecretNames in AUDA configuration.

Database

Required for secure communication with database server (e.g., PostgreSQL).

Configure the database certificate in Instance configuration. Align MES Applications configuration so database verification tests use the same settings. For PostgreSQL, see PostgreSQL TLS.

The deployment injects the certificate material into the MES truststore for TLS to the database. The same configuration covers DB Installer jobs, Control Data init, MES Services that use the database, and database verification tests.

ERP system

Required for secure communication with ERP system.

Set the Secret name in erpSystem.certificateSecretName in Instance configuration.

LDAP server

Required for secure communication with LDAP server.

Set the Secret name in ldap.certificateSecretName in Instance configuration.

Mail server

Required for secure communication with mail server.

Set the Secret name in mailServer.certificateSecretName in Instance configuration.

Printing Systems (e.g., CUPS)

Required for secure communication with CUPS.

Add the Secret name(s) to truststore.certificateSecretNames in Label Printing configuration and Report Printing configuration.

Scales

Required for secure communication with external scales.

Add the Secret name(s) to truststore.certificateSecretNames in SCLS configuration.

Private Git Repositories and OCI Registries

Required for secure communication with Git repositories and OCI registries via Argo CD.

→ The corresponding trust domain certificate cannot be configured via a standard Secret reference. Instead, it must be provided using the mechanism described in Argo CD – Trust Custom TLS Certificates.

For more information about these domains, refer to Communication Partners.

Certificate Scope and Isolation

PAS-X MES supports a use case specific certificate configuration, where certificate trust is configured per external communication partner (trust domain) and applied only to the MES Services that communicate with that partner.

The objective is to guarantee high trust isolation per external system (e.g., ERP System, Mail Server, Database) and to reduce the operational impact of certificate rotation to only the services whose trust configuration changes.

In a use case specific scope:

  • Each MES Service consumes only the certificates required for its own incoming/outgoing TLS communication.

  • Certificate updates trigger restarts only for the affected MES Services (depending on the MES Service’s reload capabilities and the deployment strategy).

PAS-X MES also supports a common certificate configuration, where the same Kubernetes Secret Certificate is injected into all MES Services. This reduces configuration effort but increases operational impact: any certificate update may restart all MES Services consuming the shared configuration.

Server Identity for Incoming Communication

Some Services must present a TLS server identity to external clients or systems. This typically applies to incoming connections from outside the Kubernetes cluster, where the service acts as a server. These are not trust domains, because MES does not validate the remote certificate; it only presents its own server identity.

Overview

Server Identity Description

Kubernetes Ingress / OpenShift Route

MES must present a TLS server identity for incoming HTTPS requests from web browsers or UI clients if the connection is secured.

The following applications expose incoming HTTPS endpoint:

RabbitMQ

MES must present a TLS server identity for incoming messages from PAS-X2X via RabbitMQ if the connection is secured.

TLS for the RabbitMQ broker (PAS-X2X ↔ AMQP) is configured on the RabbitMQ cluster; see PAS-X2X Communication and RabbitMQ TLS Configuration. Ingress TLS for the management UI uses TLS configuration values.

  • Updating server identity material may require Ingress reload or service restart, depending on TLS termination.

For more information about these scenarios, refer to Communication Partners.

Providing TLS Certificates via Kubernetes Secrets

PAS-X MES consumes TLS certificates via Kubernetes Secrets.

For detailed guidelines on secret structure, supported certificate formats, and key conventions, refer to Kubernetes TLS Secret Guidelines.

Automated Certificate Management with cert-manager

PAS-X MES supports using cert-manager to automate the issuance and renewal of TLS certificates in Kubernetes environments.

For details on supported configurations see Cert-Manager Integration documentation.