Bird
0
0

You want RabbitMQ to verify client certificates but allow clients without certificates to connect. Which combination of ssl_options settings achieves this?

hard📝 Application Q9 of 15
RabbitMQ - Security and Operations
You want RabbitMQ to verify client certificates but allow clients without certificates to connect. Which combination of ssl_options settings achieves this?
Assl_options.verify = verify_peer, ssl_options.fail_if_no_peer_cert = false
Bssl_options.verify = verify_none, ssl_options.fail_if_no_peer_cert = true
Cssl_options.verify = verify_peer, ssl_options.fail_if_no_peer_cert = true
Dssl_options.verify = verify_none, ssl_options.fail_if_no_peer_cert = false
Step-by-Step Solution
Solution:
  1. Step 1: Understand verify_peer and fail_if_no_peer_cert

    verify_peer checks client certs if provided; fail_if_no_peer_cert controls if missing certs cause rejection.
  2. Step 2: Allow clients without certs but verify if present

    Set fail_if_no_peer_cert to false to allow missing certs, verify_peer to verify if cert is present.
  3. Final Answer:

    ssl_options.verify = verify_peer, ssl_options.fail_if_no_peer_cert = false -> Option A
  4. Quick Check:

    Verify peer but allow no certs [OK]
Quick Trick: Use fail_if_no_peer_cert false to allow missing certs with verify_peer [OK]
Common Mistakes:
MISTAKES
  • Setting fail_if_no_peer_cert true blocks clients without certs
  • Using verify_none disables verification
  • Confusing verify and fail_if_no_peer_cert roles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes