-
Notifications
You must be signed in to change notification settings - Fork 6
/
cluster_issuer.yaml
43 lines (40 loc) · 1.04 KB
/
cluster_issuer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file creates an intermediate cert for issuing client certificates,
# and assumes that a root CA issuer has already been configured in the
# cert-manager namespace
#
# See root_issuer_dev.yaml for creating a dev root
# See root_issuer_prod.yaml for creating a production root from a known secret
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: print-your-cert-ca
namespace: cert-manager
spec:
isCA: true
privateKey:
algorithm: ECDSA
size: 256
secretName: print-your-cert-ca
commonName: The cert-manager maintainers
subject:
organizations:
- CNCF
organizationalUnits:
- cert-manager
countries: # Change for the country you're issuing in!
- US
localities: # Change for the city you're issuing in!
- Salt Lake City
duration: 438000h # 50 years.
issuerRef:
name: root-print-your-cert-ca-issuer
kind: Issuer
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: print-your-cert-ca
namespace: cert-manager
spec:
ca:
secretName: print-your-cert-ca