<p>Before this,I need to configure a keystore (.jks) in the project in order to use the mq service.I added it in the Dockerfile:</p>
<pre><code>ENTRYPOINT [&quot;java&quot;, &quot;-Djavax.net.ssl.keyStoreType=jks&quot;, &quot;-Djavax.net.ssl.keyStore=xxx.jks&quot;, &quot;-Djavax.net.ssl.keyStorePassword=xxx&quot;, &quot;-jare&quot;, &quot;app.jar&quot;]
</code></pre>
<p>This is very simple and it can work after deploying it to kubernetes.</p>
<p>But recently I need to use Hazelcast in the same project , that requires me to add a new .jks file.</p>
<p>How should I make these 2 jks work at the same time in one project? (Someone told me that it seems possible to merge two jks, but I want to keep 2.jks)</p>

Wsr
<p>As your question specifies you would like to keep the two keystores separate, this is not quite the answer you want. But if you conclude that there is no way to load two keystores (which is possible) in a satisfactory manner, here is how you combine them.</p>
<pre><code>keytool -importkeystore -srckeystore yyy.jks -destkeysore xxx.jks
</code></pre>
<p>This will import certificates from yyy into xxx.</p>
