Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Currently, the `cert-controller-manager` supports certificate authorities via:
- [Using the cert-controller-manager](#using-the-cert-controller-manager)
- [Usage](#usage)
- [Renewal of Certificates](#renewal-of-certificates)
- [Triggering a manual Certificate renewal](#triggering-a-manual-certificate-renewal)
- [Revoking Certificates](#revoking-certificates)
- [Revoking certificates with renewal](#revoking-certificates-with-renewal)
- [Checking OCSP revocation using OpenSSL](#checking-ocsp-revocation-using-openssl)
Expand Down Expand Up @@ -1042,6 +1043,25 @@ is always valid for 90 days and will be rolled 30 days before it expires by upda
in the `Certificate` object.
The configuration can be changed with the command line parameter `--issuer.renewal-window`.

### Triggering a manual Certificate renewal

You can trigger a manual renewal of a `Certificate` by setting `.spec.renew` to `true`.
The controller will then renew the certificate with the next reconciliation and remove the field.

```yaml
apiVersion: cert.gardener.cloud/v1alpha1
kind: Certificate
metadata:
name: renew-sample
namespace: default
spec:
commonName: cert1.mydomain.com
renew: true # trigger a renewal with the next reconciliation, the field will be removed
ensureRenewedAfter: null # mandatory if a manual renewal was already triggered
```

If the field `.spec.ensureRenewedAfter` is set and you want to trigger the renewal again, make sure to remove it (e.g. by setting the value explicitly to `null`).

## Revoking Certificates

Certificates created with an `ACME` issuer can also be revoked if private key of the certificate
Expand Down