I’ve tried to connect to RabbitMQ through NServiceBus using only a certificate (The target is to avoid the use of username/password). Based of what I’ve found in documentation, I wrote the following connection string:
It seems that NServiceBus submit guest as username when nothing is supplied:
2019-04-02 16:50:20.039 [error] <0.10575.167> Error on AMQP connection <0.10575.167> (IPSTUFFREMOVED, state: starting):
PLAIN login refused: user ‘guest’ can only connect via localhost
Is it possible to connect using only a certificate ? If yes, do you have documentation about the way of doing it?
The connection string options only work if you have a certificate file on disk that you want to use. If you need to read it from a store, you’ll need to do it from code like your example code shows.