Greg Warner
2015-07-30 18:59:03 UTC
How can I get my shovel client to verify the server's certificate?
I've successfully got a shovel working from rabbit1 to rabbit2, two
rabbitmq hosts, with SSL/TLS. rabbit2 is using a certificate signed by a
CA. I'm trying to get rabbit1, the shovel client, to produce an error by
intentionally giving it the wrong CA certificate (a CA certificate that has
nothing to do with the CA that signed rabbit2's certificate).
Here is my shovel destination URI:
amqps://user:***@rabbit2?cacertfile=/var/rmq/badcacert.pem&verify=verify_peer
Rabbit2's rabbitmq.config (rabbit2 doesn't need to verify connecting
clients):
[
{rabbit, ...
{ssl_options, [{cacertfile,"/var/rmq/cacert.pem"},
{certfile,"/var/rmq/servercert.pem"},
{keyfile,"/var/rmq/serverkey.pem"},
{verify,verify_none},
{fail_if_no_peer_cert,false}]}
]}
].
I would expect to see an error on the Shovel Status page, but instead I see
the green box and messages are happily being shoveled.
I seem to be experiencing the opposite problem of this user who couldn't
get the shovel plugin to _not_ verify the peer cert:
https://groups.google.com/d/msg/rabbitmq-users/nsj8qr3daGQ/H3NmzjGVjMQJ
I've successfully got a shovel working from rabbit1 to rabbit2, two
rabbitmq hosts, with SSL/TLS. rabbit2 is using a certificate signed by a
CA. I'm trying to get rabbit1, the shovel client, to produce an error by
intentionally giving it the wrong CA certificate (a CA certificate that has
nothing to do with the CA that signed rabbit2's certificate).
Here is my shovel destination URI:
amqps://user:***@rabbit2?cacertfile=/var/rmq/badcacert.pem&verify=verify_peer
Rabbit2's rabbitmq.config (rabbit2 doesn't need to verify connecting
clients):
[
{rabbit, ...
{ssl_options, [{cacertfile,"/var/rmq/cacert.pem"},
{certfile,"/var/rmq/servercert.pem"},
{keyfile,"/var/rmq/serverkey.pem"},
{verify,verify_none},
{fail_if_no_peer_cert,false}]}
]}
].
I would expect to see an error on the Shovel Status page, but instead I see
the green box and messages are happily being shoveled.
I seem to be experiencing the opposite problem of this user who couldn't
get the shovel plugin to _not_ verify the peer cert:
https://groups.google.com/d/msg/rabbitmq-users/nsj8qr3daGQ/H3NmzjGVjMQJ
--
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+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.