Question:
I have created a MI project using Hello World Docker template using Integration Studio 7.2.0. I want to setup mTLS for the service. I have configured the keystore like below.deployment.toml
interceptor.jks
contains client cert with alias mg
and privateKey with alias interceptor
. This service is invoked using cURL as below.-k
option I noticed that the cert received to the client is below and not the one I configured in deployment.toml
I have already tried importing the privateKey to
wso2carbon.jks
as well.Answer:
In your case, it seems the keystore is not getting updated.You can build the docker image from the Integration Studio as specified in here[1].
Then you can mount the new keystore to the MI container [2].
[1] – https://apim.docs.wso2.com/en/latest/integrate/develop/create-docker-project/#build-and-push-docker-images
[2] – https://docs.docker.com/storage/volumes/#start-a-container-with-a-volume
If you have better answer, please add a comment about this, thank you!