I am trying to implement ActiveMQ ssl connection with server authentication.
When I try to connect I get :
Server Certificate name doesn't not match the uri host name value
According to ActiveMQ documentation :
You should note that in order to validate that the certificate that the broker sends is the one we want we must validate the "Common Name (CN)" field from the certificate against the host-name in the URI. If you have trouble connecting to the broker one of the first things to check it if your host-name matches the broker certificate common name.
My problem is that my server can have multiple names which are specified in the SubjectAlternativeName.
Can i change the ActiveMQ server certificate validation to ignore the CN? or to serarch also in the SubjectAlternativeName section?