Generating a Kubernetes Secret

Create a Kubernetes Secret that contains the HMAC key of your ACME account and use its name in your cert-manager Issuer file. This is how the ACME server identifies your ACME account and registers it.

To create the secret, run the following command with your preferred secret name.

kubectl create secret generic <secret name> --from-literal secret=<your HMAC key> -n <namespace-name>

To list the secrets, run the command.

kubectl get secrets -n <namespace-name>
The namespace is not mandatory. If not provided, the default namespace is used.

Kubernetes Secret can be created in various ways. For more information, see Secrets.