Skip to content

[OSDOCS-15293] Update nw-mutual-tls-auth.adoc #96042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions modules/nw-mutual-tls-auth.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ If the `clientCA` value specifies an X509v3 certificate revocation list (CRL) di
[source,terminal]
----
$ oc create configmap \
router-ca-certs-default \
--from-file=ca-bundle.pem=client-ca.crt \// <1>
-n openshift-config
router-ca-certs-default \
--from-file=ca-bundle.pem=client-ca.crt \// <1>
-n openshift-config
----
<1> The config map data key must be `ca-bundle.pem`, and the data value must be a CA certificate in PEM format.

Expand Down Expand Up @@ -61,9 +61,16 @@ $ oc edit IngressController default -n openshift-ingress-operator
allowedSubjectPatterns:
- "^/CN=example.com/ST=NC/C=US/O=Security/OU=OpenShift$"
----

. Optional, get the Distinguished Name (DN) for `allowedSubjectPatterns` by entering the following command.
+
[source,terminal]
----
$ openssl x509 -in custom-cert.pem -noout -subject
subject= /CN=example.com/ST=NC/C=US/O=Security/OU=OpenShift
$ openssl x509 -in custom-cert.pem -noout -subject
----
+
.Example output
[source,text]
----
subject=C=US, ST=NC, O=Security, OU=OpenShift, CN=example.com
----