You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then reference both secrets when running the integration:
120
133
121
134
[source,console]
122
135
----
123
-
$ kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca
136
+
$ kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca -t jvm.ca-cert-password=secret:my-truststore-pwd
124
137
----
125
138
126
139
If your certificate is stored under a different key in the secret:
127
140
128
141
[source,console]
129
142
----
130
-
$ kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca/custom-ca.pem
143
+
$ kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca/custom-ca.pem -t jvm.ca-cert-password=secret:my-truststore-pwd
131
144
----
132
145
133
146
This will automatically:
134
147
135
148
1. Mount the CA certificate secret
136
149
2. Generate a JVM truststore using an init container
137
150
3. Configure the JVM to use the generated truststore via `-Djavax.net.ssl.trustStore`
151
+
4. Inject the truststore password securely as an environment variable from your secret
152
+
153
+
NOTE: The `ca-cert-password` option is **required** when using `ca-cert`. The password is never exposed in command-line arguments - it is injected as an environment variable from the secret.
0 commit comments