# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty# dpkg -l | grep rabbitmq
ii rabbitmq-server 3.6.5-1 all Multi-protocol messaging broker
# dpkg -l | grep erlang
[...]
ii erlang-base 1:19.0-1 amd64 Erlang/OTP virtual machine and base applications
[...]# cat /etc/rabbitmq/rabbitmq.config
[ { rabbit, [
{loopback_users, [ ] },
{ tcp_listeners, [ 5672 ] },
{ ssl_listeners, [ 5671 ] },
{ ssl_options, [
{ cacertfile, "/etc/rabbitmq/ssl/ca/cacert.pem" },
{ certfile, "/etc/rabbitmq/ssl/server/rabbit-00.key.pem" },
{ keyfile, "/etc/rabbitmq/ssl/server/rabbit-00.cert.pem" },
{ fail_if_no_peer_cert, false },
{ verify, verify_none }
] },
{ default_pass, <<"user">> },
{ default_user, <<"password">> },
{ log_levels, [
{connection, debug}
] }
] } ].# openssl s_client -msg -ssl3 -state -showcerts -connect localhost:5671 -cert client/rabbit-00.cert.pem -key client/rabbit-00.key.pem -CAfile ca/cacert.pem
CONNECTED(00000003)
SSL_connect:before/connect initialization
>>> SSL 3.0 Handshake [length 007b], ClientHello
01 00 00 77 03 00 d7 a3 31 a5 5f c1 1e 8c 2d df
0b 17 dc 1a b3 83 8a c7 b7 e9 63 7e 3a 74 81 0e
03 a5 de 13 b5 17 00 00 50 c0 14 c0 0a 00 39 00
38 00 88 00 87 c0 0f c0 05 00 35 00 84 c0 12 c0
08 00 16 00 13 c0 0d c0 03 00 0a c0 13 c0 09 00
33 00 32 00 9a 00 99 00 45 00 44 c0 0e c0 04 00
2f 00 96 00 41 c0 11 c0 07 c0 0c c0 02 00 05 00
04 00 15 00 12 00 09 00 ff 01 00
SSL_connect:SSLv3 write client hello A# tcpdump -i lo port 5671
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
13:52:52.553215 IP rabbit-00.vagrant.47629 > rabbit-00.vagrant.5671: Flags [S], seq 464237873, win 43690, options [mss 65495,sackOK,TS val 1605102 ecr 0,nop,wscale 7], length 0
13:52:52.553224 IP rabbit-00.vagrant.5671 > rabbit-00.vagrant.47629: Flags [S.], seq 1548985028, ack 464237874, win 43690, options [mss 65495,sackOK,TS val 1605102 ecr 1605102,nop,wscale 7], length 0
13:52:52.553232 IP rabbit-00.vagrant.47629 > rabbit-00.vagrant.5671: Flags [.], ack 1, win 342, options [nop,nop,TS val 1605102 ecr 1605102], length 0
13:52:52.554674 IP rabbit-00.vagrant.47629 > rabbit-00.vagrant.5671: Flags [P.], seq 1:129, ack 1, win 342, options [nop,nop,TS val 1605102 ecr 1605102], length 128
13:52:52.554688 IP rabbit-00.vagrant.5671 > rabbit-00.vagrant.47629: Flags [.], ack 129, win 350, options [nop,nop,TS val 1605102 ecr 1605102], length 0
13:52:55.259631 IP rabbit-00.vagrant.47629 > rabbit-00.vagrant.5671: Flags [F.], seq 129, ack 1, win 342, options [nop,nop,TS val 1605779 ecr 1605102], length 0
13:52:55.298958 IP rabbit-00.vagrant.5671 > rabbit-00.vagrant.47629: Flags [.], ack 130, win 350, options [nop,nop,TS val 1605789 ecr 1605779], length 0Status of node 'rabbit@rabbit-00' ...
[{pid,1504},
{running_applications,
[{rabbitmq_auth_mechanism_ssl,
"RabbitMQ SSL authentication (SASL EXTERNAL)","3.6.5"},
{rabbitmq_management,"RabbitMQ Management Console","3.6.5"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.5"},
{rabbit,"RabbitMQ","3.6.5"},
{os_mon,"CPO CXC 138 46","2.4.1"},
{ranch,"Socket acceptor pool for TCP protocols.","1.2.1"},
{amqp_client,"RabbitMQ AMQP Client","3.6.5"},
{rabbit_common,[],"3.6.5"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.5"},
{webmachine,"webmachine","1.10.3"},
{mochiweb,"MochiMedia Web Server","2.13.1"},
{ssl,"Erlang/OTP SSL application","8.0"},
{public_key,"Public key infrastructure","1.2"},
{crypto,"CRYPTO","3.7"},
{inets,"INETS CXC 138 49","6.3"},
{xmerl,"XML parser","1.3.11"},
{syntax_tools,"Syntax tools","2.0"},
{compiler,"ERTS CXC 138 10","7.0"},
{mnesia,"MNESIA CXC 138 12","4.14"},
{asn1,"The Erlang ASN1 compiler version 4.0.3","4.0.3"},
{sasl,"SASL CXC 138 11","3.0"},
{stdlib,"ERTS CXC 138 10","3.0"},
{kernel,"ERTS CXC 138 10","5.0"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 19 [erts-8.0] [source] [64-bit] [async-threads:64] [kernel-poll:true]\n"},
[...]
{alarms,[]}, {listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{'amqp/ssl',5671,"::"}]}, {vm_memory_high_watermark,0.4}, {vm_memory_limit,416887603}, {disk_free_limit,50000000}, {disk_free,38356254720}, {file_descriptors, [{total_limit,924},{total_used,2},{sockets_limit,829},{sockets_used,0}]}, {processes,[{limit,1048576},{used,238}]}, {run_queue,0}, {uptime,2907}, {kernel,{net_ticktime,60}}]# hostname
rabbit-00# hostname -f
rabbit-00.vagrantroot@rabbit-00:~# su rabbitmq -s /bin/bash
rabbitmq@rabbit-00:/root$ cat /etc/rabbitmq/ssl/server/*
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
[...]
-----END RSA PRIVATE KEY-----
rabbitmq@rabbit-00:/root$ cat /etc/rabbitmq/ssl/ca/*
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-------
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# telnet localhost 5672
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
AMQP Connection closed by foreign host.
# telnet localhost 5671
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> Connection closed.# netstat -tulpen | grep 567tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 109 17790 5317/beamtcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 109 17695 5317/beamtcp6 0 0 :::5671 :::* LISTEN 109 17785 5317/beamtcp6 0 0 :::5672 :::* LISTEN 109 17779 5317/beam# ps aux | grep beamrabbitmq 5317 0.1 5.8 1672132 59368 ? Sl 17:15 0:05 /usr/lib/erlang/erts-8.0/bin/beam -W w -A 64 -P 1048576 -t 5000000 -stbt db -K true -B i -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin -noshell -noinput -s rabbit boot -sname rabbit@rabbit-00 -boot start_sasl -config /etc/rabbitmq/rabbitmq -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/rab...@rabbit-00.log"} -rabbit sasl_error_logger {file,"/var/log/rabbitmq/rab...@rabbit-00-sasl.log"} -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@rabbit-00-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@rabbit-00" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672domainComponent = optional[ testca_policy ]