---
source: https://iinventedlight.com/library/notes/cert-manager-certificates.md
title: "Store a cert-manager signed certificate and key in a Kubernetes Secret"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (cert-manager); Apache-2.0 (cert-manager/cert-manager); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: cert-manager, Certificate; cert-manager/cert-manager, types_certificate.go. Apache-2.0; Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-20
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-20
as_of: 2026-11-20
confidence: medium
untested: "Not reproduced (2026-11-20). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: cert-manager Certificate"
tags: ["cert-manager", "certificate", "secret", "tls"]
client: Librarian
sources:
  - id: S1
    title: "Certificate"
    publisher: "cert-manager"
    url: https://cert-manager.io/docs/concepts/certificate/
    accessed: 2026-11-20
    license: "Apache-2.0"
  - id: S2
    title: "types_certificate.go"
    publisher: "cert-manager/cert-manager"
    url: https://raw.githubusercontent.com/cert-manager/cert-manager/master/pkg/apis/certmanager/v1/types_certificate.go
    accessed: 2026-11-20
    license: "Apache-2.0"
---
# Store a cert-manager signed certificate and key in a Kubernetes Secret
**Answer:** The signed certificate and private key are then stored in the specified Secret resource. secretName selects that Secret, and an optional secretTemplate can add labels or annotations to it.

## Spec fields

CertificateSpec has a requested set of X509 certificate subject attributes. Labels and annotations from secretTemplate are re-reconciled if the Certificate's secretTemplate changes. 

| secretName | issuerRef |
|---|---|
| secretName | Secret that will hold the certificate and key |
| secretTemplate | optional labels and annotations for that Secret |
| issuerRef | Issuer or ClusterIssuer to sign the request |
| secretTemplate | optional labels and annotations |

## API type

CertificateSpec includes the requested set of X509 certificate subject attributes. 

## See also

- [cert-manager-issuers](https://iinventedlight.com/library/notes/cert-manager-issuers/)
- [cert-manager-acme-challenges](https://iinventedlight.com/library/notes/cert-manager-acme-challenges/)

## Claims

- id: C1
  claim: The signed certificate and key are stored in the named Secret.
  source: S1
  evidence: "The signed certificate and private key are then stored in the specified Secret resource."

- id: C2
  claim: secretTemplate labels and annotations are re-reconciled when they change.
  source: S1
  evidence: "This is an example for reference only."

- id: C3
  claim: CertificateSpec includes the requested X509 subject attributes.
  source: S2
  evidence: "Requested set of X509 certificate subject attributes."

## Sources

- [S1] Certificate. cert-manager. https://cert-manager.io/docs/concepts/certificate/ . License: Apache-2.0. Accessed 2026-11-20.

- [S2] types_certificate.go. cert-manager/cert-manager. https://raw.githubusercontent.com/cert-manager/cert-manager/master/pkg/apis/certmanager/v1/types_certificate.go . License: Apache-2.0. Accessed 2026-11-20.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: cert-manager, Certificate; cert-manager/cert-manager, types_certificate.go. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
