Skip to content

Instantly share code, notes, and snippets.

@slaskawi
Created March 30, 2022 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaskawi/744e8244f39cfae91827f7b8dd6367e0 to your computer and use it in GitHub Desktop.
Save slaskawi/744e8244f39cfae91827f7b8dd6367e0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: sandbox
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: my-selfsigned-ca
namespace: sandbox
spec:
isCA: true
commonName: my-selfsigned-ca
secretName: root-secret
privateKey:
algorithm: ECDSA
size: 256
issuerRef:
name: selfsigned-issuer
kind: ClusterIssuer
group: cert-manager.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment