Trusting Custom TLS Certificates

In some environments, Git repositories or OCI registries may use self-signed TLS certificates or certificates signed by a custom Certificate Authority (CA). Argo CD does not trust such sources by default, which can lead to failed repository access during application synchronization.

To avoid these issues, custom certificates must be explicitly trusted by Argo CD before deploying the PAS-X MES application.

For more background, refer to the official documentation: Argo CD – Custom TLS Certificates.

Methods for Adding Trusted Certificates

You can trust TLS certificates in Argo CD using one of the following methods:

  1. Adding certificates to the Körber Argo CD custom values file during installation

  2. Using the Argo CD CLI

  3. Using the Argo CD UI

Regardless of the method, the certificates must be configured before deploying PAS-X MES to ensure reliable repository access.

1. Add Certificates via Körber Argo CD Helm Values File

If you are installing Argo CD using the Körber-provided Helm chart, you can include trusted certificates directly in the custom values file.

This approach is declarative, version-controlled, and integrates seamlessly with GitOps workflows.

For schema details and example structure, refer to the Argo CD Configuration Reference.

2. Add Certificates Using the Argo CD CLI

Prerequisites

Command

Use the following command to add a TLS certificate:

argocd cert add-tls --from <path-to-certificate.pem> <repository-server-host>

For example:

argocd cert add-tls --from ./my-ca.pem git.internal.example.com

3. Add Certificates Using the Argo CD UI

You can also configure certificates interactively through the Argo CD web interface:

Steps

  • Open the Argo CD UI in your browser

  • Log in and go to Settings (gear icon in the sidebar)

  • Navigate to Repository certificates and known hosts

  • Click ADD TLS CERTIFICATE

  • In the dialog, add the Repository Server Name and paste your TLS certificate (PEM format)

When configuring certificates, only the repository host should be used as the key. For example, if your repository URL is https://git.internal.example.com/my-repo, use git.internal.example.com.