Currently, if I don't set a username and password, it will be populated with the default username and password, which is guest:guest. However, when an SSL certificate is specified, the user name and password are not required. So in this case, username and password can be omitted.
Reproduction steps
Start a RabbitMQ instance with SSL support.
Create an environment with code similar to the following,not need to specify username and password.
Describe the bug
Currently, if I don't set a username and password, it will be populated with the default username and password, which is guest:guest. However, when an SSL certificate is specified, the user name and password are not required. So in this case, username and password can be omitted.
Reproduction steps
Start a RabbitMQ instance with SSL support.
Create an environment with code similar to the following,not need to specify username and password.
Authentication Failure
Expected behavior
When an SSL certificate is set, there is no need to specify a user name and password.
Additional context
There is a method in
amqp091-go
to access with an SSL certificate which isDialTLS_ExternalAuth
.I think the two should be similar.