I use a Java client using JMS/JNDI
. The connection is working when using one-way SSL authentication SSLCAUTH(OPTIONAL)
. The first step I did is to export the public certificate of the client:
keytool -export -keystore keystore -storepass storepass -alias CLIENT -file client.cer
Then I added this certificate to the MQ key repository.
gsk7cmd -cert -add -db keydb.kdb -pw password -label ibmwebspheremqclient -file client.cer -format binary
And I finally switched to SSLCAUTH(REQUIRED)
mode.
I get the following error log. The message is pretty clear, it can't find my client certificate. I read that my client certificate should have a label ibmwebspheremq<client_user_id>
. What is this user id since I am connecting via Java?
AMQ9637: Channel is lacking a certificate.