-
Notifications
You must be signed in to change notification settings - Fork 6
/
root_issuer_dev.yaml
50 lines (43 loc) · 1017 Bytes
/
root_issuer_dev.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
44
45
46
47
48
# This file creates a self-signed root certificate for dev purposes.
#
# For "production", we'd ideally want to use the same root certificate
# for multiple different events and so the issuer would be based off of
# a manually created Secret which holds the root.
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: self-signed
namespace: cert-manager
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: root-print-your-cert-ca
namespace: cert-manager
spec:
isCA: true
privateKey:
algorithm: ECDSA
size: 256
secretName: root-print-your-cert-ca
commonName: The cert-manager maintainers Root CA
subject:
organizations:
- CNCF
organizationalUnits:
- cert-manager
duration: 876000h # 100 years.
issuerRef:
name: self-signed
kind: Issuer
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: root-print-your-cert-ca-issuer
namespace: cert-manager
spec:
ca:
secretName: root-print-your-cert-ca