-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from SgtCoDFish/issuers
Split up issuers
- Loading branch information
Showing
3 changed files
with
72 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This file creates an issuer from a root certificate, assuming that | ||
# the root was provided in a secret manually. | ||
# | ||
# The secret should be called root-print-your-cert-ca and should be in the | ||
# cert-manager namespace | ||
|
||
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 | ||
|
||
|