OpenShift - List SSL certificates in a deployment container args (arguments)
by
Jeremy Canfield |
Updated: December 29 2021
| OpenShift articles
If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.
A deployment can use one or more SSL certificates:
- In a config map
- In a secret
- In a deployments container args (arguments)
This article describes how to list the SSL certificates in a deployments container args.
The oc get deployments command can be used to list the deployments in a namespace
~]# oc get deployments --namespace foo
NAME READY UP-TO-DATE AVAILABLE AGE
app001 1/1 1 1 8d
The -o yaml or -o json options can be used to display more information about the deployment. In this example, app001 is a Java application with SSL certificates stored in /usr/local/secure/truststore.p12 in the container.
~]# oc get deployment/app001 --namespace foo -o yaml
spec:
template:
spec:
containers:
- env:
- name: JAVA_OPTS
value: -Djavax.net.ssl.trustStore=/usr/local/secure/truststore.p12
Did you find this article helpful?
If so, consider buying me a coffee over at