Skip to content

Commit

Permalink
Upload the signed certificate the command didn't work without the "-i…
Browse files Browse the repository at this point in the history
…" option using the base64 command
  • Loading branch information
ayushpatil2122 authored Oct 29, 2024
1 parent 4beb9e5 commit a260ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/tasks/tls/managing-tls-in-a-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Finally, populate the signed certificate in the API object's status:

```shell
kubectl get csr my-svc.my-namespace -o json | \
jq '.status.certificate = "'$(base64 ca-signed-server.pem | tr -d '\n')'"' | \
jq '.status.certificate = "'$(base64 -i ca-signed-server.pem | tr -d '\n')'"' | \
kubectl replace --raw /apis/certificates.k8s.io/v1/certificatesigningrequests/my-svc.my-namespace/status -f -
```

Expand Down

0 comments on commit a260ccc

Please sign in to comment.