Cannot set mqtt.ssl_cert_client_id_san_type and san_index #12595
-
Describe the bugI am using docker image version "4.0.2-management". When i have this inside
I get error like this, which is also expected (i commented sensitive data with
However, when i try this settings:
Rabbitmq fails like this:
I have also tried to set up Reproduction steps
Expected behaviorRabbitMQ should recognise this settings (that are also in official documentation here https://www.rabbitmq.com/docs/mqtt under "Authentication with TLS/x509 client certificates" section). Furthermore, MQTT login should fail, if client doesn't provide client_id that matches to chosen SAN. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
@janezturk the nodes suggests the keys to use right in the error message. They come from the
They were originally introduced in #11702 and backported in 42a8f25. I suspect that they were renamed since then but the docs were not updated. They will be. As for the ineffectiveness of the option, it's on you to clearly prove that that is the case. Our team will take a look if you produce an executable way to reproduce with self-signed certificate chains generated using "It does not work" is not a detailed description of the problem. We do not guess in this community. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The MQTT plugin does not log the extracted value right before comparing it to |
Beta Was this translation helpful? Give feedback.
-
@michaelklishin thank you for your fast reply and fix in documentation. However, if we look into this file:
If you think this is unrelated and it should work, I am definitely willing to give you the detailed description of the problem. |
Beta Was this translation helpful? Give feedback.
-
Besides the docs update, #12604 turned out to be necessary to make the plugin behaved as described above. This will ship in |
Beta Was this translation helpful? Give feedback.
mqtt.ssl_cert_client_id_san_typ
had to be renamed tomqtt.ssl_cert_login_san_type
,mqtt.ssl_cert_client_id_san_index
tomqtt. ssl_cert_login_san_index
, andmqtt.ssl_cert_client_id_from
was correct rabbitmq/rabbitmq-website@d5f7b3a