Skip to content

Commit

Permalink
Reduce duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflycons committed Jul 15, 2024
1 parent 6e5815e commit f86a900
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions docs/course-faq/kubernetes/csr-john-johndeveloper.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,32 +167,7 @@ See also [What is a distinguished name](https://knowledge.digicert.com/generalin

## Creating a CertificateSigningRequest

1. Get the base64 content of the CSR file

```bash
cat john.csr | base64
```

Copy the output of the above command

1. Create a `CertificateSigningRequest` manifest

```yaml
apiVersion: certificates.k8s.io/v1
kind: CertificateSigningRequest
metadata:
name: john-developer # <- This can be anything you like. Doesn't have to be "john".
spec:
request: # <- Paste the output you copied above here.
signerName: kubernetes.io/kube-apiserver-client
expirationSeconds: 86400 # one day before the request is automatically revoked if you haven't approved it.
usages:
- digital signature
- key encipherment
- client auth
groups:
- system:authenticated
```
See the examples above.

## See Also

Expand Down

0 comments on commit f86a900

Please sign in to comment.