apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: nextcloud spec: # Secret names are always required. #secretName: nextcloud-tls secretName: cadoles-selfsigned-ca duration: 2160h # 90d renewBefore: 360h # 15d subject: organizations: - cadoles # The use of the common name field has been deprecated since 2000 and is # discouraged from being used. commonName: cadoles.lan isCA: false privateKey: algorithm: RSA encoding: PKCS1 size: 2048 usages: - server auth - client auth # At least one of a DNS Name, URI, or IP address is required. dnsNames: - nextcloud - nextcloud.cadoles.lan - nxt.cadoles.lan # Issuer references are always required. issuerRef: name: cadoles-ca-issuer # We can reference ClusterIssuers by changing the kind here. # The default value is Issuer (i.e. a locally namespaced Issuer) kind: Issuer # This is optional since cert-manager will default to this value however # if you are using an external issuer, change this to that issuer group. group: cert-manager.io