I'm not sure what I'm doing wrong with this one. Moving the configs I was working with in my vagrant vm setup out to our testing environment and ran in to a huge snag ;(
No matter what I do I can't get rid of the badmatch error below. I've tried a few things which I'll enumerate below as well.
=ERROR REPORT==== 12-Apr-2016::15:42:40 ===
application: mochiweb
"Accept failed error"
"{error,{certfile,{badmatch,[]}}}"
1) default config from puppet
% This file managed by Puppet
% Template Path: rabbitmq/templates/rabbitmq.config
[
{ssl, [{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}]},
{rabbit, [
{cluster_nodes, {['rabbit@rabbit_n1', 'rabbit@rabbit_n2'], disc}},
{cluster_partition_handling, ignore},
{tcp_listen_options,
[binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false}]
},
{tcp_listeners, []},
{ssl_listeners, [5671]},
{ssl_options, [
{cacertfile,"/etc/pki/tls/certs/comodo-rsa-domain-validation-sha-2-w-root.ca-bundle"},
{certfile,"/etc/pki/tls/certs/rabbitmq.pem"},
{keyfile,"/etc/pki/tls/private/rabbitmq.key"},
{verify,verify_none},
{fail_if_no_peer_cert,false}
,{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}
]},
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]},
{kernel, [
]}
,
{rabbitmq_management, [
{listener, [
{port, 15671},
{ssl, true},
{ssl_opts, [
{cacertfile, "/etc/pki/tls/certs/comodo-rsa-domain-validation-sha-2-w-root.ca-bundle"},
{certfile, "/etc/pki/tls/certs/rabbitmq.pem"},
{keyfile, "/etc/pki/tls/private/rabbitmq.key"}
,{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}
]}
]}
]}
].
% EOF
2) manually set the listen address
% This file managed by Puppet
% Template Path: rabbitmq/templates/rabbitmq.config
[
{ssl, [{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}]},
{rabbit, [
{cluster_nodes, {['rabbit@rabbit_n1', 'rabbit@rabbit_n2'], disc}},
{cluster_partition_handling, ignore},
{tcp_listen_options,
[binary,
{packet, raw},
{reuseaddr, true},
{backlog, 128},
{nodelay, true},
{exit_on_close, false}]
},
{tcp_listeners, []},
{ssl_listeners, [{ "rabbit_n1.internal.lan", 5671}]},
{ssl_options, [
{cacertfile,"/etc/pki/tls/certs/comodo-rsa-domain-validation-sha-2-w-root.ca-bundle"},
{certfile,"/etc/pki/tls/certs/rabbitmq.pem"},
{keyfile,"/etc/pki/tls/private/rabbitmq.key"},
{verify,verify_none},
{fail_if_no_peer_cert,false}
,{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}
]},
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]},
{kernel, [
]}
,
{rabbitmq_management, [
{listener, [
{port, 15671 },
{ssl, true},
{ssl_opts, [
{cacertfile, "/etc/pki/tls/certs/comodo-rsa-domain-validation-sha-2-w-root.ca-bundle"},
{certfile, "/etc/pki/tls/certs/rabbitmq.pem"},
{keyfile, "/etc/pki/tls/private/rabbitmq.key"}
,{versions, ['tlsv1', 'tlsv1.1', 'tlsv1.2']}
]}
]}
]}
].
% EOF
3) The hostname of the test env hosts use short names so I modified the systems to show fqdn and rebooted. No change in behavior
4) verified the ssl keys ( was actually step 0 in this list if you look at order ). All verified fine. openssl was run via sudo as rabbitmq - same as the rabbitmq-server processes ( minus sudo but should be functionally the same )
Versions
rpm -qa|egrep 'rabbit|erlang'
erlang-18.3-1.el7.centos.x86_64
rabbitmq-server-3.6.1-1.noarch
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
The blank data in the badmatch has me worried. I diff'd out the rabbitmq.config files between the working and non-working environments. The only changes are hostname related.
Anyone have an idea of what I'm doing wrong here?