Skip to content

Commit f8d3aef

Browse files
stevsmitSteven Smith
andauthored
Updates ca- file names (quay#1120)
Co-authored-by: Steven Smith <[email protected]>
1 parent cf90bb4 commit f8d3aef

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

modules/adding-ca-certs-to-config.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ touch extra-ca-certificate-config-bundle-secret.yaml
2525
----
2626
$ oc -n <namespace> create secret generic extra-ca-certificate-config-bundle-secret \
2727
--from-file=config.yaml=</path/to/config.yaml> \ <1>
28-
--from-file=extra_ca_cert_<certificate-one>=<path/to/certificate_one> \ <2>
29-
--from-file=extra_ca_cert_<certificate-two>=<path/to/certificate_two> \ <3>
30-
--from-file=extra_ca_cert_<certificate-three>=<path/to/certificate_three> \ <4>
28+
--from-file=extra_ca_cert_<name-of-certificate-one>=<path/to/certificate_one> \ <2>
29+
--from-file=extra_ca_cert_<name-of-certificate-two>=<path/to/certificate_two> \ <3>
30+
--from-file=extra_ca_cert_<name-of-certificate-three>=<path/to/certificate_three> \ <4>
3131
--dry-run=client -o yaml > extra-ca-certificate-config-bundle-secret.yaml
3232
----
3333
<1> Where `<config.yaml>` is your `base64 decoded` `config.yaml` file.

modules/creating-custom-ssl-certs-config-bundle.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ $ touch custom-ssl-config-bundle-secret.yaml
2727
$ oc -n <namespace> create secret generic custom-ssl-config-bundle-secret \
2828
--from-file=config.yaml=</path/to/config.yaml> \ <1>
2929
--from-file=ssl.cert=</path/to/ssl.cert> \ <2>
30-
--from-file=extra_ca_cert=</path/to/ca.cert> \ <3>
30+
--from-file=extra_ca_cert_<name-of-certificate>.crt=ca-certificate-bundle.crt
31+
\ <3>
3132
--from-file=ssl.key=</path/to/ssl.key> \ <4>
3233
--dry-run=client -o yaml > custom-ssl-config-bundle-secret.yaml
3334
----
3435
<1> Where `<config.yaml>` is your `base64 decoded` `config.yaml` file.
3536
<2> Where `<ssl.cert>` is your `ssl.cert` file.
36-
<3> Optional. The `--from-file=extra_ca_cert=<ca.cert>` field allows {productname} to recognize custom Certificate Authority (CA) files. If you are using LDAP, OIDC, or another service that uses custom CAs, you must add them via the `extra_ca_cert` path. For more information, see "Adding additional Certificate Authorities to {productname-ocp}."
37+
<3> Optional. The `--from-file=extra_ca_cert_<name-of-certificate>.crt=ca-certificate-bundle.crt` field allows {productname} to recognize custom Certificate Authority (CA) files. If you are using LDAP, OIDC, or another service that uses custom CAs, you must add them via the `extra_ca_cert` path. For more information, see "Adding additional Certificate Authorities to {productname-ocp}."
3738
<4> Where `<ssl.key>` is your `ssl.key` file.
3839

3940
. Optional. You can check the content of the `custom-ssl-config-bundle-secret.yaml` file by entering the following command:
@@ -51,7 +52,7 @@ apiVersion: v1
5152
data:
5253
config.yaml: QUxMT1dfUFVMTFNfV0lUSE9VVF9TVFJJQ1RfTE9HR0lORzogZmFsc2UKQVVUSEVOVElDQVRJT05fVFlQRTogRGF0YWJhc2UKREVGQVVMVF9UQUdfRVhQSVJBVElPTjogMncKRElTVFJJQlVURURfU1R...
5354
ssl.cert: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVYakNDQTBhZ0F3SUJBZ0lVTUFBRk1YVWlWVHNoMGxNTWI3U1l0eFV5eTJjd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2dZZ3hDekFKQmdOVkJBWVR...
54-
extra_ca_cert:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVYakNDQTBhZ0F3SUJBZ0lVTUFBRk1YVWlWVHNoMGxNTWI3U1l0eFV5eTJjd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2dZZ3hDe...
55+
extra_ca_cert_<name-of-certificate>:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVYakNDQTBhZ0F3SUJBZ0lVTUFBRk1YVWlWVHNoMGxNTWI3U1l0eFV5eTJjd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2dZZ3hDe...
5556
ssl.key: LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktjd2dnU2pBZ0VBQW9JQkFRQ2c0VWxZOVV1SVJPY1oKcFhpZk9MVEdqaS9neUxQMlpiMXQ...
5657
kind: Secret
5758
metadata:

0 commit comments

Comments
 (0)