[rabbitmq-discuss] [RUBY AMPQ] SSL LOGIN ERROR EXTERNAL login refused

Michael Klishin mklishin at gopivotal.com
Tue Apr 29 09:18:07 BST 2014


On 29 April 2014 at 12:08:34, Loganathan Sellapa (loganathan.ms at gmail.com) wrote:
> > I tried to setup SSL onmy development machine by following the  
> instructions provided in https://www.rabbitmq.com/ssl.html.  
> And then created rabbitmq.cong file with the below settings.  
>  
> [
> {rabbit, [
> {ssl_listeners, [5671]},
> {ssl_options, [{cacertfile,"/opt/ssl/testca/cacert.pem"},  
> {certfile,"/opt/ssl/server/cert.pem"},
> {keyfile,"/opt/ssl/server/key.pem"},
> {verify,verify_peer},
> {fail_if_no_peer_cert,true}]},
> {auth_mechanisms, ['EXTERNAL']},
> {ssl_cert_login_from, common_name}
> ]}
> ].
>  
> After restarting the rabbitmq server I tried to connect to RabbitMq  
> via AMQP Gem with the below code, but I am getting authentication  
> failure error.
>  
> RUBY CODE:
>  
> RMQ_CONFIGURATIONS = {:host=>"127.0.0.1", :port=>5671,  
> :vhost=>"/", :auth_mechanism=>"EXTERNAL", :ssl=>{:cert_chain_file=>"/opt/ssl/client/cert.pem",  
> :private_key_file=>"/opt/ssl/client/key.pem"}}

Do your RabbitMQ server and client actually use different CA certificate files
or is this a typo? 
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list