Cannot authenticate with x509 without username and password #8827
Replies: 6 comments 8 replies
-
When x.509 certificates are used, the username is extracted from one of the certificate fields and the password field is ignored. The MQTT guide likely means that those credentials will not be used as if it were the standard authN mechanism. |
Beta Was this translation helpful? Give feedback.
-
What you claim to be doing is perfectly possible and hasn't changed in years. Perhaps you haven't restarted all nodes after updating See How to Inspect and Verify Effective Configuration of a Running Node and Troubleshooting TLS. We cannot suggest much more with the amount of information provided. At the very least, please provide the effective configuration and logs. We do not guess in this community. |
Beta Was this translation helpful? Give feedback.
-
Also, I'm pretty sure combining
|
Beta Was this translation helpful? Give feedback.
-
Oh, and the most obvious thing to verify is what your client certificate's Subject Alternative Name and the CN values are, and that there there is a user with that username in RabbitMQ's internal database, since that's the authN backend (not to be confused with mechanisms) used by your node (according to the provided configuration file). |
Beta Was this translation helpful? Give feedback.
-
@Aleksandar1932 You're in luck, I have a complete example here: https://github.com/lukebakken/mqtt-client-cert-example See the README and |
Beta Was this translation helpful? Give feedback.
-
I got one familiar case. I just used RabbitMQ and didn't enable mqtt plugin. auth_cache.cached_backend = http auth_http.http_method = get management.listener.ssl_opts.cacertfile = /etc/rabbitmq/ssl/ca_certificate.pem Does RabbitMQ without mqtt plugin support x509 authentication? or is there detail standard operation process ? Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I've successfully configured RabbitMQ with for TLS following the official docs.
My config looks like:
When I want to authenticate with an MQTT client it's not possible without specifying a valid username and password. As per https://www.rabbitmq.com/mqtt.html it is stated
Clients must not supply username and password.
Is this behaviour expected?
Reproduction steps
Expected behavior
login without username/password, just with x509 certificate
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions