I run into the same issue described in ActiveMQ Artemis AMQ229031 error with mutual SSL.
Setup is done as per official example.
It looks there is something went wrong in the code. I was able to reproduce the mentioned issue.
Clients side says:
Exception in thread "main" javax.jms.JMSSecurityException: AMQ229031: Unable to validate user from /127.0.0.1:47822. Username: null; SSL certificate subject DN: CN=ActiveMQ Artemis Client, OU=Artemis, O=ActiveMQ, L=AMQ, ST=AMQ, C=AMQ
Server side log file says:
021-06-22 06:27:49,209 WARN [org.apache.activemq.artemis.core.server] AMQ222216: Security problem while authenticating: AMQ229031: Unable to validate user from /127.0.0.1:47404. Username: null; SSL certificate subject DN: CN=ActiveMQ Artemis Client, OU=Artemis, O=ActiveMQ, L=AMQ, ST=AMQ, C=AMQ
I think Artemis finds the certificate, but it was unable to validate.
bootstrap.xml
,login.config
,cert-users.properties
, andcert-roles.properties
. It looks like a bad configuration to me, but I can't say for sure without more details. – Justin Bertram