> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cdm/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/certificate-not-ready.md).

# Certificate is not ready

The `cdm-tls-cert` Certificate provides the certificate that CDM Node serves to Core Clusters. When cert-manager cannot issue it, the Secret stays empty or keeps its old content. Core Clusters cannot connect to CDM Node with a certificate that matches your domain.

## Symptoms

- The `READY` column of the `Certificate` shows `False`:

  ```bash
  kubectl -n cennso-system get certificate cdm-tls-cert
  ```

  ```text
  NAME           READY   SECRET         AGE
  cdm-tls-cert   False   cdm-tls-cert   5m
  ```

- The events of the `Certificate` report an error. To read them, run:

  ```bash
  kubectl -n cennso-system describe certificate cdm-tls-cert
  ```

## Possible causes

To find the cause, check the following resources in this order.

1. The `ClusterIssuer` is not ready:

   ```bash
   kubectl get clusterissuers.cert-manager.io
   ```

   The `READY` column of your issuer must show `True`.

2. The certificate request is not approved or not ready:

   ```bash
   kubectl -n cennso-system get certificaterequests.cert-manager.io
   ```

3. The DNS-01 challenge fails. This applies to issuers of a certificate authority that uses the ACME protocol. List the orders and the challenges:

   ```bash
   kubectl -n cennso-system get orders.acme.cert-manager.io,challenges.acme.cert-manager.io
   ```

   A challenge in a state other than `valid` carries the reason in its `status.reason` field. Typical reasons are missing DNS credentials or a DNS zone that the solver cannot change.

4. cert-manager reports an error. Read its log:

   ```bash
   kubectl -n cert-manager logs deploy/cert-manager --tail=50
   ```

## Solution

To resolve this issue, fix the cause that you found and let cert-manager retry:

1. Correct the `ClusterIssuer` or its DNS-01 solver configuration. For example, update the DNS credentials Secret that the solver uses.

2. Wait until cert-manager issues the certificate:

   ```bash
   kubectl -n cennso-system wait --for=condition=Ready certificate/cdm-tls-cert --timeout=300s
   ```

   The command prints `certificate.cert-manager.io/cdm-tls-cert condition met` when the issue succeeds.

3. Verify the certificate that CDM Node serves. For the steps, see [Configure the CDM TLS certificate](https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate.md#verification).
