Skip to content

Commit

Permalink
Add custom CA in OCP bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeanner committed Dec 10, 2024
1 parent 06aa997 commit 3151036
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/managing-secrets-with-vault.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ $ openssl genrsa -out ca.key 4096
$ openssl req -x509 -new -nodes -key ca.key -sha256 -days 1024 -out ca.crt
```

_Inject our custom CA in the OCP internal trust store_
```bash
$ oc -n openshift-config create configmap vault-ca.crt --from-file ca-bundle.crt=ca.crt
$ oc patch proxy/cluster --type=merge --patch='{"spec":{"trustedCA":{"name":"vault-ca.crt"}}}'
```
([doc source](https://docs.openshift.com/container-platform/4.17/security/certificates/updating-ca-bundle.html))

_Create a certificate configuration `vault-csr.conf` (set `CN` accordingly)_
```
[req]
Expand Down

0 comments on commit 3151036

Please sign in to comment.