[rabbitmq-discuss] How do we connect with AMQP without username password

Loganathan Sellapa loganathan.ms at gmail.com
Thu Apr 24 12:32:13 BST 2014


Hi All,

I am Loganathan, ROR developer. Currently I am using ruby-amqp gem for
RabbitMq communication. I have enabled the SSL and I am able to establish
the connection only with username & password with the certificates. But I
would like to connect to the RabbitMq without user credentials. Is their
any way to do it?  One of Java application is connecting to the RabbitMq
only with Keystore & trust keystore.


*AMQP RUBY :*

 *settings = {:host => "10.146.14.115", :port => 5671, :vhost => "vchs",
:user => "vchsadmin", :pass => "changeme",:ssl => {:cert_chain_file =>
"/home/logan/bks/ipam_service/client1.vchslabs.vmware.com/cert.pem
<http://client1.vchslabs.vmware.com/cert.pem>", :private_key_file =>
"/home/logan/bks/ipam_service/client1.vchslabs.vmware.com/key.pem
<http://client1.vchslabs.vmware.com/key.pem>"}}*

*AMQP.start(settings) do |connection|*

*puts "Connected, authenticated. TLS seems to work." connection.disconnect
{ puts "Now closing the connection..."; EventMachine.stop }*

*end*
*RABBITMQ CONFIGURATIONS:*

[
  {rabbit, [
     {ssl_listeners, [5671]},
     {ssl_options, [{cacertfile,"/opt/ssl/cacert.pem"},
                    {certfile,"/opt/ssl/cert.pem"},
                    {keyfile,"/opt/ssl/key.pem"},
                    {verify,verify_peer},
                    {fail_if_no_peer_cert,true}]},
     {auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'EXTERNAL']},
     {ssl_cert_login_from, common_name}
  ]}
].

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140424/05b44d50/attachment.html>


More information about the rabbitmq-discuss mailing list