Skip to content

Commit

Permalink
Merge pull request #1278 from Nickmman/selfsigned_bootstrapping
Browse files Browse the repository at this point in the history
Add clarification to selfsigned bootstrapping
  • Loading branch information
jetstack-bot authored Sep 19, 2023
2 parents ee95b38 + f28e9aa commit a1acac7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ zhangzhiqiangcs
arukiidou
Richardds
kahirokunn
selfsigned-issuer

# TEMPORARY
# these are temporarily ignored because the spellchecker
Expand Down
42 changes: 42 additions & 0 deletions content/docs/configuration/selfsigned.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,48 @@ spec:
secretName: root-secret
```
Alternatively, if you are looking to use `ClusterIssuer` for signing `Certificates` anywhere in your cluster with the `SelfSigned` `Certificate` CA, use the YAML below (slight modification to the last step):

```yaml
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: cert-manager
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
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: my-ca-issuer
spec:
ca:
secretName: root-secret
```
The "selfsigned-issuer" `ClusterIssuer` is used to issue the Root CA Certificate. Then, "my-ca-issuer" `ClusterIssuer` is used to issue but also sign certificates using the newly created Root CA `Certificate`, which is what you will use for future certificates cluster-wide.

### CRL Distribution Points

You may also optionally specify [CRL](https://en.wikipedia.org/wiki/Certificate_revocation_list)
Expand Down

0 comments on commit a1acac7

Please sign in to comment.